Fix wrong exception check on login page

This commit is contained in:
Alex Cabal 2024-05-07 21:42:12 -05:00
parent 1d764008ed
commit f8b817c4e1

View file

@ -33,7 +33,7 @@ try{
header('Location: ' . $session->Url); header('Location: ' . $session->Url);
} }
} }
catch(Exceptions\InvalidLoginException $ex){ catch(Exceptions\AppException $ex){
if($requestType == WEB){ if($requestType == WEB){
$_SESSION['email'] = $email; $_SESSION['email'] = $email;
$_SESSION['redirect'] = $redirect; $_SESSION['redirect'] = $redirect;