mirror of
https://github.com/flarum/core.git
synced 2025-07-20 16:21:18 +02:00
No need to set a remember cookie if only logging in for session
This commit is contained in:
@@ -81,7 +81,9 @@ class LogInController implements ControllerInterface
|
||||
|
||||
event(new UserLoggedIn($this->users->findOrFail($data->userId), $token));
|
||||
|
||||
$response = $this->rememberer->remember($response, $token, ! array_get($body, 'remember'));
|
||||
if (array_get($body, 'remember')) {
|
||||
$response = $this->rememberer->remember($response, $token);
|
||||
}
|
||||
}
|
||||
|
||||
return $response;
|
||||
|
Reference in New Issue
Block a user