Replace 403 with 401 in onAuthenticationFailure method

This commit is contained in:
Alan Poulain 2020-02-05 17:32:02 +01:00
parent c2e0aab7be
commit 73bc793be2
No known key found for this signature in database
GPG Key ID: 75A5A66808216C3B

View File

@ -107,7 +107,7 @@ interface GuardAuthenticatorInterface extends AuthenticationEntryPointInterface
* Called when authentication executed, but failed (e.g. wrong username password).
*
* This should return the Response sent back to the user, like a
* RedirectResponse to the login page or a 403 response.
* RedirectResponse to the login page or a 401 response.
*
* If you return null, the request will continue, but the user will
* not be authenticated. This is probably not what you want to do.