Преглед на файлове

[Security] Fixed missed argument in call custom handler when authentication is successful.

Deni преди 14 години
родител
ревизия
657f90a931
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php

+ 1 - 1
src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php

@@ -229,7 +229,7 @@ abstract class AbstractAuthenticationListener implements ListenerInterface
         }
 
         if (null !== $this->successHandler) {
-            $response = $this->successHandler->onAuthenticationSuccess($request, $token);
+            $response = $this->successHandler->onAuthenticationSuccess($event, $request, $token);
         } else {
             $response = new Response();
             $path = $this->determineTargetUrl($request);