public function checkPreAuth(UserInterface $user): void
31
{
32
4
if (!$user instanceof AbstractUser) {
33
1
return;
34
}
35
36
// user is deleted, show a generic Account Not Found message.
37
3
if (!$user->isEnabled()) {
38
1
throw new DisabledException('This user is currently disabled');
39
}
40
41
2
if ($this->denyUnverifiedLogin && !$user->isEmailAddressVerified()) {
42
1
throw new DisabledException('Please verify your email address before logging in. If you did not receive a confirmation email please try resetting your password using the forgot password feature.');
43
}
44
1
}
45
46
1
public function checkPostAuth(UserInterface $user): void