1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-22 07:33:23 +02:00

Prevent usage of password reset if email has not been verified yet

This commit is contained in:
Marco
2016-12-12 20:58:37 +01:00
parent 6be456a27a
commit 6bfa298836
3 changed files with 14 additions and 1 deletions

View File

@@ -173,6 +173,9 @@ try {
catch (\Delight\Auth\InvalidEmailException $e) {
// invalid email address
}
catch (\Delight\Auth\EmailNotVerifiedException $e) {
// email not verified
}
catch (\Delight\Auth\TooManyRequestsException $e) {
// too many requests
}