1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-07-11 19:46:22 +02:00

Document new exception for 'forgotPassword' and 'resetPassword'

This commit is contained in:
Marco
2017-07-30 16:17:04 +02:00
parent 4b6afc7c48
commit dbc463c95e

View File

@ -231,6 +231,9 @@ catch (\Delight\Auth\InvalidEmailException $e) {
catch (\Delight\Auth\EmailNotVerifiedException $e) { catch (\Delight\Auth\EmailNotVerifiedException $e) {
// email not verified // email not verified
} }
catch (\Delight\Auth\ResetDisabledException $e) {
// password reset is disabled
}
catch (\Delight\Auth\TooManyRequestsException $e) { catch (\Delight\Auth\TooManyRequestsException $e) {
// too many requests // too many requests
} }
@ -269,6 +272,9 @@ catch (\Delight\Auth\InvalidSelectorTokenPairException $e) {
catch (\Delight\Auth\TokenExpiredException $e) { catch (\Delight\Auth\TokenExpiredException $e) {
// token expired // token expired
} }
catch (\Delight\Auth\ResetDisabledException $e) {
// password reset is disabled
}
catch (\Delight\Auth\InvalidPasswordException $e) { catch (\Delight\Auth\InvalidPasswordException $e) {
// invalid password // invalid password
} }