[Security] Fix AuthenticationException constructor calls

This commit is contained in:
Alexander 2012-07-15 15:26:13 +02:00
parent 963a1d7b81
commit 42cced4c97

View File

@ -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;