diff options
-rw-r--r-- | Core/Exception/AccountStatusException.php | 6 | ||||
-rw-r--r-- | Core/Exception/UsernameNotFoundException.php | 6 | ||||
-rw-r--r-- | Core/User/UserChecker.php | 2 |
3 files changed, 5 insertions, 9 deletions
diff --git a/Core/Exception/AccountStatusException.php b/Core/Exception/AccountStatusException.php index d89d553..7819e4d 100644 --- a/Core/Exception/AccountStatusException.php +++ b/Core/Exception/AccountStatusException.php @@ -60,10 +60,8 @@ abstract class AccountStatusException extends AuthenticationException */ public function unserialize($str) { - list( - $this->user, - $parentData - ) = unserialize($str); + list($this->user, $parentData) = unserialize($str); + parent::unserialize($parentData); } } diff --git a/Core/Exception/UsernameNotFoundException.php b/Core/Exception/UsernameNotFoundException.php index 9a9989f..0299f83 100644 --- a/Core/Exception/UsernameNotFoundException.php +++ b/Core/Exception/UsernameNotFoundException.php @@ -65,10 +65,8 @@ class UsernameNotFoundException extends AuthenticationException */ public function unserialize($str) { - list( - $this->username, - $parentData - ) = unserialize($str); + list($this->username, $parentData) = unserialize($str); + parent::unserialize($parentData); } } diff --git a/Core/User/UserChecker.php b/Core/User/UserChecker.php index 414bc31..8dde3a6 100644 --- a/Core/User/UserChecker.php +++ b/Core/User/UserChecker.php @@ -55,7 +55,7 @@ class UserChecker implements UserCheckerInterface } if (!$user->isEnabled()) { - throw new DisabledException('User account is disabled.'); + $ex = new DisabledException('User account is disabled.'); $ex->setUser($user); throw $ex; } |