Make setAuthKey more easily composable.
This commit is contained in:
parent
7ab8500d22
commit
f59656bc98
@ -201,9 +201,9 @@ setCookieName val state = state { cookieName = val }
|
|||||||
|
|
||||||
|
|
||||||
-- | Set the name of the session variable that keeps track of the
|
-- | Set the name of the session variable that keeps track of the
|
||||||
-- logged user. Defaults to \"_ID\".
|
-- logged user. Defaults to \"_ID\" (used by @yesod-auth@).
|
||||||
setAuthKey :: State s -> Text -> State s
|
setAuthKey :: Text -> State s -> State s
|
||||||
setAuthKey state val = state { authKey = val }
|
setAuthKey val state = state { authKey = val }
|
||||||
|
|
||||||
|
|
||||||
-- | Load the session map from the storage backend. The value of
|
-- | Load the session map from the storage backend. The value of
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user