Exported saltPass

This commit is contained in:
Michael Snoyman 2010-10-19 07:29:27 +02:00
parent 0365e46a3e
commit 23141acaac

View File

@ -3,6 +3,7 @@ module Yesod.Helpers.Auth.Email
( authEmail
, YesodAuthEmail (..)
, EmailCreds (..)
, saltPass
) where
import Yesod
@ -231,6 +232,7 @@ postPasswordR = do
saltLength :: Int
saltLength = 5
-- | Salt a password with a randomly generated salt.
saltPass :: String -> IO String
saltPass pass = do
stdgen <- newStdGen