404labfr / 404labfr/laravel-impersonate

Missing remember me

オープン
#208 コメント 1 件 リアクション 4 件 担当者 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 を短くまとめたダイジェスト。