summaryrefslogtreecommitdiffstats
path: root/Core/User/UserChecker.php
diff options
context:
space:
mode:
Diffstat (limited to 'Core/User/UserChecker.php')
-rw-r--r--Core/User/UserChecker.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Core/User/UserChecker.php b/Core/User/UserChecker.php
index 955cb19..414bc31 100644
--- a/Core/User/UserChecker.php
+++ b/Core/User/UserChecker.php
@@ -34,7 +34,7 @@ class UserChecker implements UserCheckerInterface
if (!$user->isCredentialsNonExpired()) {
$ex = new CredentialsExpiredException('User credentials have expired.');
- $ex->setExtraInformation($user);
+ $ex->setUser($user);
throw $ex;
}
}
@@ -50,19 +50,19 @@ class UserChecker implements UserCheckerInterface
if (!$user->isAccountNonLocked()) {
$ex = new LockedException('User account is locked.');
- $ex->setExtraInformation($user);
+ $ex->setUser($user);
throw $ex;
}
if (!$user->isEnabled()) {
throw new DisabledException('User account is disabled.');
- $ex->setExtraInformation($user);
+ $ex->setUser($user);
throw $ex;
}
if (!$user->isAccountNonExpired()) {
$ex = new AccountExpiredException('User account has expired.');
- $ex->setExtraInformation($user);
+ $ex->setUser($user);
throw $ex;
}
}