test: auth exception 3

This commit is contained in:
saparatayev 2021-11-05 16:56:18 +05:00
parent ba47be4d63
commit 7e34a7ca73
1 changed files with 1 additions and 1 deletions

View File

@ -266,9 +266,9 @@ class Account extends ComponentBase
}
catch (Exception $ex) {
if ($ex instanceof AuthException) {
dd('ok');
throw new AuthException(Lang::get(/*A user was not found with the given credentials.*/'rainlab.user::lang.account.invalid_user'));
} else {
dd('ok');
}
// if (Request::ajax()) throw $ex;
if (Request::ajax()) info($ex);