mirror of
https://github.com/flarum/framework.git
synced 2025-03-31 04:15:15 +08:00
Fix login action
This commit is contained in:
parent
e3bfa8e404
commit
bc750c8694
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user