From 6c6cc111fd036e2930db7d0fb9d5c55feaabdcd9 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 17 Jul 2015 14:48:24 +0930 Subject: [PATCH] Fix login action --- framework/core/src/Forum/Actions/LoginAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Forum/Actions/LoginAction.php b/framework/core/src/Forum/Actions/LoginAction.php index 7f2230807..833f90ea6 100644 --- a/framework/core/src/Forum/Actions/LoginAction.php +++ b/framework/core/src/Forum/Actions/LoginAction.php @@ -41,7 +41,7 @@ class LoginAction extends Action { $params = array_only($request->getAttributes(), ['identification', 'password']); - $data = $this->apiClient->send(app('flarum.actor'), 'Flarum\Api\Actions\TokenAction', $params); + $data = $this->apiClient->send(app('flarum.actor'), 'Flarum\Api\Actions\TokenAction', $params)->getBody(); // TODO: The client needs to pass through exceptions(?) or the whole // response so we can look at the response code. For now if there isn't