404labfr / 404labfr/laravel-impersonate

Missing remember me

未关闭
#208 1 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
2.3k
派生
235
PR 合并指标
30 天内没有已合并 PR

描述

Hello, the notion of remember_me is missing in the Session Guard of the plugin, which causes the user to be disconnected when leaving a spoof. Laravel adds it in its core...

Would it be possible to add these 2 lines in the Guard/SessionGuard.php file, in the quietLogin method between updateSession and setUser ?

```
/**
* Log a user into the application without firing the Login event.
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @return void
*/
public function quietLogin(Authenticatable $user)
{
$this->updateSession($user->getAuthIdentifier());

$this->ensureRememberTokenIsSet($user); // New line here
$this->queueRecallerCookie($user); // New line here

$this->setUser($user);
}
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。