Skip to content
Snippets Groups Projects
Commit 27cdeddc authored by Allen Gilliland's avatar Allen Gilliland
Browse files

Merge pull request #1028 from metabase/extend_reset_token_expiration

extend password reset expiration
parents 83a22b73 8e58aec2
No related branches found
No related tags found
No related merge requests found
......@@ -94,8 +94,8 @@
(when (try (creds/bcrypt-verify token reset_token)
(catch Throwable _))
;; check that the reset was triggered within the last 1 HOUR, after that the token is considered expired
(checkp (> (* 60 60 1000) (- (System/currentTimeMillis) (or reset_triggered 0)))
;; check that the reset was triggered within the last 48 HOURS, after that the token is considered expired
(checkp (> (* 48 60 60 1000) (- (System/currentTimeMillis) (or reset_triggered 0)))
'password "Reset token has expired")
(set-user-password user-id password)
......
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