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. )
This commit is contained in:
Sibi Prabakaran 2016-12-30 18:06:40 +05:30
parent 705b52f7eb
commit 4330461033
No known key found for this signature in database
GPG Key ID: D19E3E0EBB557613

View File

@ -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.