Skip to content
Snippets Groups Projects
Commit e58dd659 authored by Cam Saül's avatar Cam Saül
Browse files

Merge pull request #339 from metabase/dont_log_bad_passwords

don't log passwords of insufficient strength
parents 98e6cf48 a0f8f2b5
No related branches found
No related tags found
No related merge requests found
......@@ -375,7 +375,9 @@
(defannotation ComplexPassword
"Param must be a complex password (*what does this mean?*)"
[symb value]
(checkp-with password/is-complex? symb value "Insufficient password strength"))
(check (password/is-complex? value)
[400 (format "Invalid value for '%s': Insufficient password strength" symb)])
value)
(defannotation FilterOptionAllOrMine
"Param must be either `all` or `mine`."
......
......@@ -56,7 +56,7 @@
:email "anything"
:password "anything"}))
(expect "Invalid value 'anything' for 'password': Insufficient password strength"
(expect "Invalid value for 'password': Insufficient password strength"
(http/client :post 400 "setup/user" {:token "anything"
:first_name "anything"
:last_name "anything"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment