test: auth exception 4

This commit is contained in:
saparatayev 2021-11-05 17:00:43 +05:00
parent 7e34a7ca73
commit feee05ff9a
1 changed files with 3 additions and 4 deletions

View File

@ -266,10 +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 {
}
throw new AuthException('Txtttstts');
}
// if (Request::ajax()) throw $ex;
if (Request::ajax()) info($ex);
else Flash::error($ex->getMessage());