X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/49d823e99f9815fca231b76aceef894531e7b42c..c367958b6f5eb5e1446f03e47b6177bf8831428e:/Checker/UserChecker.php?ds=sidebyside diff --git a/Checker/UserChecker.php b/Checker/UserChecker.php index 744a35e..7ea72ff 100644 --- a/Checker/UserChecker.php +++ b/Checker/UserChecker.php @@ -38,6 +38,13 @@ class UserChecker extends InMemoryUserChecker { throw $ex; } + //With not enabled user + if (!$user->isEnabled()) { + $ex = new DisabledException('User account is not enabled'); + $ex->setUser($user); + throw $ex; + } + //Call parent checkPreAuth parent::checkPostAuth($user); }