1
0
mirror of https://github.com/flarum/core.git synced 2025-05-31 03:29:40 +02:00

Fix login action

This commit is contained in:
Toby Zerner 2015-07-17 14:48:24 +09:30
parent e3bfa8e404
commit bc750c8694

View File

@ -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