Fix more quotes in exception messages
This commit is contained in:
parent
e7e5f334e7
commit
955752b74c
@ -115,7 +115,7 @@ class GuardAuthenticationProvider implements AuthenticationProviderInterface
|
|||||||
$this->userChecker->checkPreAuth($user);
|
$this->userChecker->checkPreAuth($user);
|
||||||
if (true !== $checkCredentialsResult = $guardAuthenticator->checkCredentials($token->getCredentials(), $user)) {
|
if (true !== $checkCredentialsResult = $guardAuthenticator->checkCredentials($token->getCredentials(), $user)) {
|
||||||
if (false !== $checkCredentialsResult) {
|
if (false !== $checkCredentialsResult) {
|
||||||
throw new \TypeError(sprintf('%s::checkCredentials() must return a boolean value.', \get_class($guardAuthenticator)));
|
throw new \TypeError(sprintf('"%s::checkCredentials()" must return a boolean value.', \get_class($guardAuthenticator)));
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new BadCredentialsException(sprintf('Authentication failed because "%s::checkCredentials()" did not return true.', \get_class($guardAuthenticator)));
|
throw new BadCredentialsException(sprintf('Authentication failed because "%s::checkCredentials()" did not return true.', \get_class($guardAuthenticator)));
|
||||||
|
Reference in New Issue
Block a user