diff options
author | Pascal Borreli <pascal@borreli.com> | 2013-11-24 06:12:30 +0000 |
---|---|---|
committer | Pascal Borreli <pascal@borreli.com> | 2013-11-24 06:12:30 +0000 |
commit | ad591f170365bef1a963e9c876aa48adbf4c312c (patch) | |
tree | 48e1850c23b1bf294fbb6bcfa2bd673638ac8a6c /Core/Authentication | |
parent | c9228af9c932a15ab46b74be5bbd756bc69fda59 (diff) | |
download | symfony-security-ad591f170365bef1a963e9c876aa48adbf4c312c.zip symfony-security-ad591f170365bef1a963e9c876aa48adbf4c312c.tar.gz symfony-security-ad591f170365bef1a963e9c876aa48adbf4c312c.tar.bz2 |
Fixed typos/CS/PHPDoc
Diffstat (limited to 'Core/Authentication')
-rw-r--r-- | Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php b/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php index 3affd78..f4d0959 100644 --- a/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php +++ b/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php @@ -47,23 +47,22 @@ class PreAuthenticatedAuthenticationProvider implements AuthenticationProviderIn $this->providerKey = $providerKey; } - /** - * {@inheritdoc} - */ - public function authenticate(TokenInterface $token) - { - if (!$this->supports($token)) { - return null; - } - + /** + * {@inheritdoc} + */ + public function authenticate(TokenInterface $token) + { + if (!$this->supports($token)) { + return null; + } 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); |