瀏覽代碼

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

Christian Schaefer 14 年之前
父節點
當前提交
87502fbb07
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/Symfony/Component/Security/Core/Authentication/AuthenticationProviderManager.php

+ 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);