From 3f90caaeb590d7197376df7fae176c5b872405df Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 3 Jun 2015 03:41:09 +0200 Subject: [PATCH] Fix login response not containing the token --- framework/core/src/Forum/Actions/LoginAction.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/framework/core/src/Forum/Actions/LoginAction.php b/framework/core/src/Forum/Actions/LoginAction.php index 8d90f424a..b46f177e6 100644 --- a/framework/core/src/Forum/Actions/LoginAction.php +++ b/framework/core/src/Forum/Actions/LoginAction.php @@ -28,8 +28,11 @@ class LoginAction extends BaseAction event(new UserLoggedIn($this->users->findOrFail($data->userId), $data->token)); // TODO: The client needs to pass through exceptions + $response = $this->success(); + $response->getBody()->write(json_encode($data)); + return $this->withRememberCookie( - $this->success(), + $response, $data->token ); }