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:
@@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user