| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function checkPreAuth(UserInterface $user) |
||
| 27 | { |
||
| 28 | if (!$user instanceof User) { |
||
| 29 | return; |
||
| 30 | } |
||
| 31 | // user is deleted, show a generic Account Not Found message. |
||
| 32 | if (!$user->getValidation()) { |
||
| 33 | // or to customize the message shown |
||
| 34 | throw new DisabledException(); |
||
| 35 | /*throw new CustomUserMessageAuthenticationException( |
||
| 52 | } |