[Security] Fix AuthenticationServiceException constructor calls
This commit is contained in:
parent
42cced4c97
commit
79430b8238
@ -90,7 +90,9 @@ class DaoAuthenticationProvider extends UserAuthenticationProvider
|
||||
} catch (UsernameNotFoundException $notFound) {
|
||||
throw $notFound;
|
||||
} catch (\Exception $repositoryProblem) {
|
||||
throw new AuthenticationServiceException($repositoryProblem->getMessage(), $token, 0, $repositoryProblem);
|
||||
$ex = new AuthenticationServiceException($repositoryProblem->getMessage(), 0, $repositoryProblem);
|
||||
$ex->setExtraInformation($token);
|
||||
throw $ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user