mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-17 06:38:29 +01:00
Set redirectToReferer to True #23
This commit is contained in:
parent
5b9ace6425
commit
dc5f703cbf
@ -163,6 +163,8 @@ instance YesodAuth App where
|
|||||||
-- Where to send a user after logout
|
-- Where to send a user after logout
|
||||||
logoutDest _ = HomeR
|
logoutDest _ = HomeR
|
||||||
|
|
||||||
|
redirectToReferer _ = True
|
||||||
|
|
||||||
getAuthId creds = do
|
getAuthId creds = do
|
||||||
muid <- maybeAuthId
|
muid <- maybeAuthId
|
||||||
join $ runDB $ case muid of
|
join $ runDB $ case muid of
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user