소스 검색

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