From 0c3e1d22997a5188a73a83abc5ee1fe43ea85624 Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Sun, 5 Feb 2017 20:25:23 +0530 Subject: [PATCH 1/2] Derive Show for Creds type Useful for doing liftIO $ print inside Yesod handlers like authenticate. --- yesod-auth/Yesod/Auth.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yesod-auth/Yesod/Auth.hs b/yesod-auth/Yesod/Auth.hs index c4cef202..dda8182f 100644 --- a/yesod-auth/Yesod/Auth.hs +++ b/yesod-auth/Yesod/Auth.hs @@ -105,7 +105,7 @@ data Creds master = Creds { credsPlugin :: Text -- ^ How the user was authenticated , credsIdent :: Text -- ^ Identifier. Exact meaning depends on plugin. , credsExtra :: [(Text, Text)] - } + } deriving (Show) class (Yesod master, PathPiece (AuthId master), RenderMessage master FormMessage) => YesodAuth master where type AuthId master From 6f1356f2a19068604260444804f81bddcbc74353 Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Sun, 5 Feb 2017 20:27:00 +0530 Subject: [PATCH 2/2] Update changelog --- yesod-auth/ChangeLog.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/yesod-auth/ChangeLog.md b/yesod-auth/ChangeLog.md index 7cce78bf..ea924908 100644 --- a/yesod-auth/ChangeLog.md +++ b/yesod-auth/ChangeLog.md @@ -1,6 +1,11 @@ +## 1.4.17 + +* Add Show instance for user credentials `Creds` + ## 1.4.16 * Fix email provider [#1330](https://github.com/yesodweb/yesod/issues/1330) +* Document JSON endpoints of Yesod.Auth.Email ## 1.4.15