404labfr / 404labfr/laravel-impersonate

Missing remember me

Abierto
#208 1 comentario 4 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
PHP
Estrellas
2.3k
Forks
235
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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);
}
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.