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

Merge pull request #3593 from metabase/fix-password-complexity-options

Respect METABASE_PASSWORD_LENGTH and METABASE_PASSWORD_COMPLEXITY
parents 816ad2e1 6c3c1c31
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
(defn public-settings (defn public-settings
"Return a simple map of key/value pairs which represent the public settings for the front-end application." "Return a simple map of key/value pairs which represent the public settings (`MetabaseBootstrap`) for the front-end application."
[] []
{:ga_code "UA-60817802-1" {:ga_code "UA-60817802-1"
:password_complexity password/active-password-complexity :password_complexity password/active-password-complexity
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
(when (>= (occurances char-type) min-count) (when (>= (occurances char-type) min-count)
(recur more))))))) (recur more)))))))
(def ^:const active-password-complexity (def active-password-complexity
"The currently configured description of the password complexity rules being enforced" "The currently configured description of the password complexity rules being enforced"
(merge (complexity->char-type->min (config/config-kw :mb-password-complexity)) (merge (complexity->char-type->min (config/config-kw :mb-password-complexity))
;; Setting MB_PASSWORD_LENGTH overrides the default :total for a given password complexity class ;; Setting MB_PASSWORD_LENGTH overrides the default :total for a given password complexity class
......
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