X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/3d287311c2d5479cf672925ac9247ec7fab7313b..49d823e99f9815fca231b76aceef894531e7b42c:/Checker/UserChecker.php?ds=sidebyside diff --git a/Checker/UserChecker.php b/Checker/UserChecker.php index e34284e..744a35e 100644 --- a/Checker/UserChecker.php +++ b/Checker/UserChecker.php @@ -32,17 +32,13 @@ class UserChecker extends InMemoryUserChecker { } //With not activated user - if (!$user->isActivated()) { - $ex = new UnactivatedException('Account is not activated'); - $ex->setUser($user); - throw $ex; - } + if (!$user->isActivated()) { + $ex = new UnactivatedException('User Account is not activated'); + $ex->setUser($user); + throw $ex; + } - //With disabled user - if ($user->isDisabled()) { - $ex = new DisabledException('Account is disabled'); - $ex->setUser($user); - throw $ex; - } + //Call parent checkPreAuth + parent::checkPostAuth($user); } }