From 73bc793be2bb58c936b3df34507ef7d8320abc72 Mon Sep 17 00:00:00 2001 From: Alan Poulain Date: Wed, 5 Feb 2020 17:32:02 +0100 Subject: [PATCH] Replace 403 with 401 in onAuthenticationFailure method --- .../Component/Security/Guard/GuardAuthenticatorInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Security/Guard/GuardAuthenticatorInterface.php b/src/Symfony/Component/Security/Guard/GuardAuthenticatorInterface.php index 7372eb844a6d..5701157e1cfa 100644 --- a/src/Symfony/Component/Security/Guard/GuardAuthenticatorInterface.php +++ b/src/Symfony/Component/Security/Guard/GuardAuthenticatorInterface.php @@ -107,7 +107,7 @@ public function createAuthenticatedToken(UserInterface $user, $providerKey); * 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.