Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing remember me #208

Open
rjacwebagency opened this issue Oct 17, 2024 · 0 comments
Open

Missing remember me #208

rjacwebagency opened this issue Oct 17, 2024 · 0 comments

Comments

@rjacwebagency
Copy link

rjacwebagency commented Oct 17, 2024

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);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant