summaryrefslogtreecommitdiffstats
path: root/Http/EntryPoint
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2012-10-31 17:45:37 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2012-11-06 09:15:19 +0100
commit5512b0a91ae03413414d689184cb0f260807a291 (patch)
tree8c437c0bd421978609b10056ea9987932a3aca4a /Http/EntryPoint
parentb20dc084818bf7f59dd4ff937896f4236821055c (diff)
downloadsymfony-security-5512b0a91ae03413414d689184cb0f260807a291.zip
symfony-security-5512b0a91ae03413414d689184cb0f260807a291.tar.gz
symfony-security-5512b0a91ae03413414d689184cb0f260807a291.tar.bz2
[Security] removed the 401 error custom status message
Diffstat (limited to 'Http/EntryPoint')
-rw-r--r--Http/EntryPoint/BasicAuthenticationEntryPoint.php2
-rw-r--r--Http/EntryPoint/DigestAuthenticationEntryPoint.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/Http/EntryPoint/BasicAuthenticationEntryPoint.php b/Http/EntryPoint/BasicAuthenticationEntryPoint.php
index 6ba3872..44ece5e 100644
--- a/Http/EntryPoint/BasicAuthenticationEntryPoint.php
+++ b/Http/EntryPoint/BasicAuthenticationEntryPoint.php
@@ -34,7 +34,7 @@ class BasicAuthenticationEntryPoint implements AuthenticationEntryPointInterface
{
$response = new Response();
$response->headers->set('WWW-Authenticate', sprintf('Basic realm="%s"', $this->realmName));
- $response->setStatusCode(401, $authException ? $authException->getMessage() : null);
+ $response->setStatusCode(401);
return $response;
}
diff --git a/Http/EntryPoint/DigestAuthenticationEntryPoint.php b/Http/EntryPoint/DigestAuthenticationEntryPoint.php
index ec92419..37fba85 100644
--- a/Http/EntryPoint/DigestAuthenticationEntryPoint.php
+++ b/Http/EntryPoint/DigestAuthenticationEntryPoint.php
@@ -57,7 +57,7 @@ class DigestAuthenticationEntryPoint implements AuthenticationEntryPointInterfac
$response = new Response();
$response->headers->set('WWW-Authenticate', $authenticateHeader);
- $response->setStatusCode(401, $authException ? $authException->getMessage() : null);
+ $response->setStatusCode(401);
return $response;
}