Selaa lähdekoodia

Followed Johannes advice to only break when the resulting token is not null.

Christian Schaefer 14 vuotta sitten
vanhempi
commit
87502fbb07

+ 3 - 1
src/Symfony/Component/Security/Core/Authentication/AuthenticationProviderManager.php

@@ -59,7 +59,9 @@ class AuthenticationProviderManager implements AuthenticationManagerInterface
 
             try {
                 $result = $provider->authenticate($token);
-                break;
+                if (null != $result) {
+                    break;
+                }
             } catch (AccountStatusException $e) {
                 $e->setExtraInformation($token);