Copyright | (c) Anton Gushcha 2016 |
---|---|
License | MIT |
Maintainer | ncrashed@gmail.com |
Stability | experimental |
Portability | Portable |
Safe Haskell | None |
Language | Haskell2010 |
- getRestoreCode :: HasStorage m => IO RestoreCode -> UserImplId -> UTCTime -> m RestoreCode
- guardRestoreCode :: AuthHandler m => UserImplId -> RestoreCode -> m ()
- sendRestoreCode :: AuthHandler m => RespUserInfo -> RestoreCode -> m ()
Documentation
getRestoreCode :: HasStorage m => IO RestoreCode -> UserImplId -> UTCTime -> m RestoreCode Source #
Get current restore code for user or generate new
guardRestoreCode :: AuthHandler m => UserImplId -> RestoreCode -> m () Source #
Throw if the restore code isn't valid for given user, if valid, invalidates the code
sendRestoreCode :: AuthHandler m => RespUserInfo -> RestoreCode -> m () Source #
Send restore code to the user' email