summaryrefslogtreecommitdiffstats
path: root/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
diff options
context:
space:
mode:
authorsarah khalil <mkhalil.sarah@gmail.com>2015-01-21 20:48:04 +0100
committersarah khalil <mkhalil.sarah@gmail.com>2015-01-21 21:14:55 +0100
commitad78f5a640b515579db750d4f87dc9169dd4b9e3 (patch)
tree0cad8351e2f7471e84b09c547565a417e05432c8 /Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
parent21689b9e96aa820bcb2a2979d04685675497f736 (diff)
downloadsymfony-security-ad78f5a640b515579db750d4f87dc9169dd4b9e3.zip
symfony-security-ad78f5a640b515579db750d4f87dc9169dd4b9e3.tar.gz
symfony-security-ad78f5a640b515579db750d4f87dc9169dd4b9e3.tar.bz2
Removed dead code and various cleaningv2.3.25
Diffstat (limited to 'Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php')
-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 b1e6c38..a73c244 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);