From 4330461033b82d9dcb0636af38ba059f993ef27b Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Fri, 30 Dec 2016 18:06:40 +0530 Subject: [PATCH] Change the type signature from Text to Verkey Since the other type signatures of the typeclass has VerKey instead of Text, it would be better to use VerKey here also to maintain consistency. Also, IMO this signature is more easy to follow ( I had to look at source to see how the verification key was generated. ) --- yesod-auth/Yesod/Auth/Email.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yesod-auth/Yesod/Auth/Email.hs b/yesod-auth/Yesod/Auth/Email.hs index 112f6d01..f8bb51dd 100644 --- a/yesod-auth/Yesod/Auth/Email.hs +++ b/yesod-auth/Yesod/Auth/Email.hs @@ -238,7 +238,7 @@ class ( YesodAuth site -- | Generate a random alphanumeric string. -- -- @since 1.1.0 - randomKey :: site -> IO Text + randomKey :: site -> IO VerKey randomKey _ = Nonce.nonce128urlT defaultNonceGen -- | Route to send user to after password has been set correctly.