1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-01 13:50:13 +02:00

Add tests for new exception from 'forgotPassword' and 'resetPassword'

This commit is contained in:
Marco
2017-07-30 16:21:21 +02:00
parent dbc463c95e
commit 7cc27b814e

View File

@@ -193,6 +193,9 @@ function processRequestData(\Delight\Auth\Auth $auth) {
catch (\Delight\Auth\EmailNotVerifiedException $e) {
return 'email not verified';
}
catch (\Delight\Auth\ResetDisabledException $e) {
return 'password reset disabled';
}
catch (\Delight\Auth\TooManyRequestsException $e) {
return 'too many requests';
}
@@ -209,6 +212,9 @@ function processRequestData(\Delight\Auth\Auth $auth) {
catch (\Delight\Auth\TokenExpiredException $e) {
return 'token expired';
}
catch (\Delight\Auth\ResetDisabledException $e) {
return 'password reset disabled';
}
catch (\Delight\Auth\InvalidPasswordException $e) {
return 'invalid password';
}