1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-11 02:24:03 +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

@@ -138,6 +138,9 @@ function processRequestData(\Delight\Auth\Auth $auth) {
catch (\Delight\Auth\InvalidEmailException $e) {
return 'invalid email address';
}
catch (\Delight\Auth\EmailNotVerifiedException $e) {
return 'email not verified';
}
catch (\Delight\Auth\TooManyRequestsException $e) {
return 'too many requests';
}