mirror of
https://github.com/flarum/core.git
synced 2025-02-25 19:53:48 +01:00
Fix login response not containing the token
This commit is contained in:
parent
82ccf28072
commit
5151a5aef5
@ -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
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user