forked from filipg/gonito
improve redirection after resetting a password
This commit is contained in:
parent
ea1e13ead6
commit
332d520eee
@ -101,9 +101,8 @@ doResetPassword' :: Bool -> Text -> Key User -> Text -> Handler Html
|
||||
doResetPassword' True _ userId password = do
|
||||
updatePassword userId (Just password)
|
||||
runDB $ update userId removeVerificationKeyStatement
|
||||
defaultLayout $ do
|
||||
setTitle "Reset password"
|
||||
$(widgetFile "password-reset")
|
||||
setMessage $ toHtml ("Password set! You can log in now." :: Text)
|
||||
redirect HomeR
|
||||
|
||||
doResetPassword' False key _ _ = do
|
||||
tooWeakPasswordMessage
|
||||
|
@ -1 +0,0 @@
|
||||
<p>OK, the password has been changed.
|
Loading…
Reference in New Issue
Block a user