happstack-authenticate-2.3.0: Happstack Authentication Library

Safe HaskellNone
LanguageHaskell98

Happstack.Authenticate.Password.Core

Synopsis

Documentation

mkHashedPass Source

Arguments

:: (Functor m, MonadIO m) 
=> Text

password in plain text

-> m HashedPass

salted and hashed

hash a password string

verifyHashedPass Source

Arguments

:: Text

password in plain text

-> HashedPass

hashed version of password

-> Bool 

verify a password

setPassword Source

Arguments

:: UserId

UserId

-> HashedPass

the hashed password

-> Update PasswordState () 

set the password for UserId

deletePassword Source

Arguments

:: UserId

UserId

-> Update PasswordState () 

delete the password for UserId

verifyPasswordForUserId Source

Arguments

:: UserId

UserId

-> Text

plain-text password

-> Query PasswordState Bool 

verify that the supplied password matches the stored hashed password for UserId

verifyPassword :: MonadIO m => AcidState AuthenticateState -> AcidState PasswordState -> Username -> Text -> m Bool Source

verify that the supplied username/password is valid