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
|
doResetPassword' True _ userId password = do
|
||||||
updatePassword userId (Just password)
|
updatePassword userId (Just password)
|
||||||
runDB $ update userId removeVerificationKeyStatement
|
runDB $ update userId removeVerificationKeyStatement
|
||||||
defaultLayout $ do
|
setMessage $ toHtml ("Password set! You can log in now." :: Text)
|
||||||
setTitle "Reset password"
|
redirect HomeR
|
||||||
$(widgetFile "password-reset")
|
|
||||||
|
|
||||||
doResetPassword' False key _ _ = do
|
doResetPassword' False key _ _ = do
|
||||||
tooWeakPasswordMessage
|
tooWeakPasswordMessage
|
||||||
|
@ -1 +0,0 @@
|
|||||||
<p>OK, the password has been changed.
|
|
Loading…
Reference in New Issue
Block a user