Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- unlockAccountName :: Members [Accounts i p, Stop AccountsError] r => AccountName -> Sem r ()
- login :: Member (Accounts i p) r => AccountCredentials -> Sem r (AuthedAccount i p)
- register :: Member (Accounts i p) r => AccountCredentials -> Sem r (AuthedAccount i p)
Documentation
unlockAccountName :: Members [Accounts i p, Stop AccountsError] r => AccountName -> Sem r () Source #
Convenience function for unlocking the account matching the given name.
login :: Member (Accounts i p) r => AccountCredentials -> Sem r (AuthedAccount i p) Source #
Authenticate the given credentials against the storage backend and return the matched account's information.
register :: Member (Accounts i p) r => AccountCredentials -> Sem r (AuthedAccount i p) Source #
Register an account with the given credentials.
Create the account in the storage backend, hash the password and store it, then mark the account as created.