Total Complexity | 4 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class UserChecker implements UserCheckerInterface |
||
22 | { |
||
23 | public function checkPreAuth(UserInterface $user): void |
||
24 | { |
||
25 | if (!$user instanceof User) { |
||
26 | return; |
||
27 | } |
||
28 | |||
29 | // user is deleted, show a generic Account Not Found message. |
||
30 | if (!$user->isEnabled()) { |
||
31 | throw new DisabledException('This user is currently disabled'); |
||
32 | } |
||
33 | } |
||
34 | |||
35 | public function checkPostAuth(UserInterface $user): void |
||
37 | } |
||
38 | } |
||
39 |