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