From 2c59cb7dcdc837d4f60a763998b9e3e69d204ad4 Mon Sep 17 00:00:00 2001 From: Alex Greif Date: Wed, 8 Nov 2017 13:36:39 +0100 Subject: [PATCH] extend docs of defaultMaybeAuthId (#1453) * extend docs of defaultMaybeAuthId make more explicite that on each call a database access is done. This can be of relevance and sometimes redundant with other Handler functionality * Update Auth.hs --- yesod-auth/Yesod/Auth.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yesod-auth/Yesod/Auth.hs b/yesod-auth/Yesod/Auth.hs index dda8182f..73da816c 100644 --- a/yesod-auth/Yesod/Auth.hs +++ b/yesod-auth/Yesod/Auth.hs @@ -243,7 +243,8 @@ credsKey = "_ID" -- | Retrieves user credentials from the session, if user is authenticated. -- -- This function does /not/ confirm that the credentials are valid, see --- 'maybeAuthIdRaw' for more information. +-- 'maybeAuthIdRaw' for more information. The first call in a request +-- does a database request to make sure that the account is still in the database. -- -- Since 1.1.2 defaultMaybeAuthId