summaryrefslogtreecommitdiffstats
path: root/Core/Authentication/AuthenticationProviderManager.php
diff options
context:
space:
mode:
authorJohannes M. Schmitt <schmittjoh@gmail.com>2011-03-14 17:41:33 +0100
committerJohannes M. Schmitt <schmittjoh@gmail.com>2011-03-14 17:41:33 +0100
commitaf0bc0a3a868f2e9f992fb7479a6b45b05087403 (patch)
treec88ebb4c36e6fc5c18d62391c6e4dd40bf6b54c9 /Core/Authentication/AuthenticationProviderManager.php
parent899cc6c09dae9d133bc49af89ba73d74361e8517 (diff)
downloadsymfony-security-af0bc0a3a868f2e9f992fb7479a6b45b05087403.zip
symfony-security-af0bc0a3a868f2e9f992fb7479a6b45b05087403.tar.gz
symfony-security-af0bc0a3a868f2e9f992fb7479a6b45b05087403.tar.bz2
[Security] small performance optimization
Diffstat (limited to 'Core/Authentication/AuthenticationProviderManager.php')
-rw-r--r--Core/Authentication/AuthenticationProviderManager.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Core/Authentication/AuthenticationProviderManager.php b/Core/Authentication/AuthenticationProviderManager.php
index 1d85e87..a82b9fb 100644
--- a/Core/Authentication/AuthenticationProviderManager.php
+++ b/Core/Authentication/AuthenticationProviderManager.php
@@ -59,6 +59,10 @@ class AuthenticationProviderManager implements AuthenticationManagerInterface
try {
$result = $provider->authenticate($token);
+
+ if (null !== $result) {
+ break;
+ }
} catch (AccountStatusException $e) {
$e->setExtraInformation($token);