summaryrefslogtreecommitdiffstats
path: root/Core/Authentication
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2015-01-25 05:37:39 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2015-01-25 05:37:39 +0100
commit4cf41cef4ad7377ea89fb3856e2b07b925aa15cf (patch)
tree2b23747f8d2618c9020dcc340f1d7b3f2586a004 /Core/Authentication
parentd5541a8851c283d068d46c0d116aaeeb672abc64 (diff)
parentad78f5a640b515579db750d4f87dc9169dd4b9e3 (diff)
downloadsymfony-security-4cf41cef4ad7377ea89fb3856e2b07b925aa15cf.zip
symfony-security-4cf41cef4ad7377ea89fb3856e2b07b925aa15cf.tar.gz
symfony-security-4cf41cef4ad7377ea89fb3856e2b07b925aa15cf.tar.bz2
Merge branch '2.3' into 2.5v2.5.12v2.5.11v2.5.10origin/2.5
* 2.3: [2.3] [HttpFoundation] [MimeTypeGuesser] Removed dead code and various cleaning [Console] Make it clear that the second argument is not about command options. Added the '-' character for spaceless on tag start and end to be consistent for block, if, set and for nodes [Yaml] fixed parse shortcut Key after unindented collection. [Console] fixed #10531 Make the container considered non-fresh if the environment parameters are changed Conflicts: src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig src/Symfony/Bridge/Twig/Resources/views/Form/form_table_layout.html.twig src/Symfony/Component/Console/Tests/ApplicationTest.php src/Symfony/Component/Security/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
Diffstat (limited to 'Core/Authentication')
-rw-r--r--Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php b/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
index 11c3cda..4f73254 100644
--- a/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
+++ b/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
@@ -59,11 +59,7 @@ class PreAuthenticatedAuthenticationProvider implements AuthenticationProviderIn
if (!$user = $token->getUser()) {
throw new BadCredentialsException('No pre-authenticated principal found in request.');
}
- /*
- if (null === $token->getCredentials()) {
- throw new BadCredentialsException('No pre-authenticated credentials found in request.');
- }
- */
+
$user = $this->userProvider->loadUserByUsername($user);
$this->userChecker->checkPostAuth($user);