summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
Diffstat (limited to 'Http')
-rw-r--r--Http/Firewall/UsernamePasswordJsonAuthenticationListener.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/Firewall/UsernamePasswordJsonAuthenticationListener.php b/Http/Firewall/UsernamePasswordJsonAuthenticationListener.php
index bf3c621..dfbb4a4 100644
--- a/Http/Firewall/UsernamePasswordJsonAuthenticationListener.php
+++ b/Http/Firewall/UsernamePasswordJsonAuthenticationListener.php
@@ -101,8 +101,8 @@ class UsernamePasswordJsonAuthenticationListener implements ListenerInterface
try {
$token = new UsernamePasswordToken($username, $password, $this->providerKey);
- $this->authenticationManager->authenticate($token);
- $response = $this->onSuccess($request, $token);
+ $authenticatedToken = $this->authenticationManager->authenticate($token);
+ $response = $this->onSuccess($request, $authenticatedToken);
} catch (AuthenticationException $e) {
$response = $this->onFailure($request, $e);
}