Rapsys Git
/
userbundle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feb820a
)
Add is enabled check
author
Raphaël Gertz
<git@rapsys.eu>
Mon, 11 Dec 2023 02:13:56 +0000
(
03:13
+0100)
committer
Raphaël Gertz
<git@rapsys.eu>
Mon, 11 Dec 2023 02:13:56 +0000
(
03:13
+0100)
Checker/UserChecker.php
patch
|
blob
|
history
diff --git
a/Checker/UserChecker.php
b/Checker/UserChecker.php
index 744a35e37403228eb6a87b6030b93e346ffd0a09..7ea72ffceebfa00361c85be369cfef90d8589951 100644
(file)
--- 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);
}