[Security] Fix AuthenticationException constructor calls
This commit is contained in:
parent
963a1d7b81
commit
42cced4c97
@ -43,7 +43,7 @@ class TokenBasedRememberMeServices extends AbstractRememberMeServices
|
||||
$user = $this->getUserProvider($class)->loadUserByUsername($username);
|
||||
} catch (\Exception $ex) {
|
||||
if (!$ex instanceof AuthenticationException) {
|
||||
$ex = new AuthenticationException($ex->getMessage(), null, $ex->getCode(), $ex);
|
||||
$ex = new AuthenticationException($ex->getMessage(), $ex->getCode(), $ex);
|
||||
}
|
||||
|
||||
throw $ex;
|
||||
|
Reference in New Issue
Block a user