mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-27 02:44:52 +09:00
UX: Don't redirect to referer after login
It causes first login after verification to redirect to registration page, which is weird, and the default Yesod falue is False, so, switching back to False
This commit is contained in:
parent
861d7636bc
commit
0cc1e20f85
1 changed files with 1 additions and 1 deletions
|
@ -605,7 +605,7 @@ instance YesodAuth App where
|
|||
-- Where to send a user after logout
|
||||
logoutDest _ = HomeR
|
||||
-- Override the above two destinations when a Referer: header is present
|
||||
redirectToReferer _ = True
|
||||
redirectToReferer _ = False
|
||||
|
||||
authenticate creds = liftHandler $ do
|
||||
let ident = credsIdent creds
|
||||
|
|
Loading…
Reference in a new issue