diff --git a/yesod-auth/Yesod/Auth.hs b/yesod-auth/Yesod/Auth.hs index d662e87d..0034ae5d 100644 --- a/yesod-auth/Yesod/Auth.hs +++ b/yesod-auth/Yesod/Auth.hs @@ -143,7 +143,7 @@ getCheckR = do creds <- maybeAuthId defaultLayoutJson (do setTitle "Authentication Status" - addHtml $ html' creds) (json' creds) + addHtml $ html' creds) (jsonCreds creds) where html' creds = [QQ(shamlet)| @@ -153,7 +153,7 @@ $maybe _ <- creds $nothing

Not logged in. |] - json' creds = + jsonCreds creds = Object $ Map.fromList [ (T.pack "logged_in", Bool $ maybe False (const True) creds) ]