فهرست منبع

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