mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-04 23:27:28 +02:00
Update tests for 'confirmEmail' and its wrapper to catch new exception
This commit is contained in:
@@ -165,6 +165,9 @@ function processRequestData(\Delight\Auth\Auth $auth) {
|
|||||||
catch (\Delight\Auth\TokenExpiredException $e) {
|
catch (\Delight\Auth\TokenExpiredException $e) {
|
||||||
return 'token expired';
|
return 'token expired';
|
||||||
}
|
}
|
||||||
|
catch (\Delight\Auth\UserAlreadyExistsException $e) {
|
||||||
|
return 'email address already exists';
|
||||||
|
}
|
||||||
catch (\Delight\Auth\TooManyRequestsException $e) {
|
catch (\Delight\Auth\TooManyRequestsException $e) {
|
||||||
return 'too many requests';
|
return 'too many requests';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user