diff options
author | Johannes Schmitt <schmittjoh@gmail.com> | 2011-03-12 09:26:37 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2011-03-12 13:24:57 +0100 |
commit | 5a06947e48c33dc57e21e4316c8b7c6e8f5827b0 (patch) | |
tree | 8d8baf38e6f19de42603920733e60ad4b9a755d6 /Http | |
parent | 4b44ea84455acab6195fc3d17ae82212d4d56b04 (diff) | |
download | symfony-security-5a06947e48c33dc57e21e4316c8b7c6e8f5827b0.zip symfony-security-5a06947e48c33dc57e21e4316c8b7c6e8f5827b0.tar.gz symfony-security-5a06947e48c33dc57e21e4316c8b7c6e8f5827b0.tar.bz2 |
re-added a __toString method for debugging purposes
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/AbstractPreAuthenticatedListener.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/Firewall/AbstractPreAuthenticatedListener.php b/Http/Firewall/AbstractPreAuthenticatedListener.php index 2b883e3..72808f5 100644 --- a/Http/Firewall/AbstractPreAuthenticatedListener.php +++ b/Http/Firewall/AbstractPreAuthenticatedListener.php @@ -55,7 +55,7 @@ abstract class AbstractPreAuthenticatedListener implements ListenerInterface $request = $event->get('request'); if (null !== $this->logger) { - $this->logger->debug(sprintf('Checking secure context token: %s', $this->securityContext->getToken()->getUserName())); + $this->logger->debug(sprintf('Checking secure context token: %s', $this->securityContext->getToken())); } list($user, $credentials) = $this->getPreAuthenticatedData($request); @@ -74,7 +74,7 @@ abstract class AbstractPreAuthenticatedListener implements ListenerInterface $token = $this->authenticationManager->authenticate(new PreAuthenticatedToken($user, $credentials, $this->providerKey)); if (null !== $this->logger) { - $this->logger->debug(sprintf('Authentication success: %s', $token->getUserName())); + $this->logger->debug(sprintf('Authentication success: %s', $token)); } $this->securityContext->setToken($token); |