From bc750c86946bfce1a7c58d284328f62bdd8a8fb7 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 17 Jul 2015 14:48:24 +0930 Subject: [PATCH] Fix login action --- src/Forum/Actions/LoginAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forum/Actions/LoginAction.php b/src/Forum/Actions/LoginAction.php index 7f2230807..833f90ea6 100644 --- a/src/Forum/Actions/LoginAction.php +++ b/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