You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The system unlogin me after ~3 hours, so I can't see the site. But if I go to the login page, it's logging me automatically without asking my login/password.
As I understand, the problem in logged_in(). It works incorrectly if you use "remember me".
See the AuthController: login() checks "$this->auth->check()", but logged_in() checks only "Services::authentication()->isLoggedIn()".
public function check(): bool { if ($this->isLoggedIn()) { return true; } ... more actions ... }
One of this "more actions" is checking "remember me" functionality.
So I've changed logged_in() function from return Services::authentication()->isLoggedIn();
to Services::authentication()->check()
Works ok now!
The text was updated successfully, but these errors were encountered:
Hi!
The system unlogin me after ~3 hours, so I can't see the site. But if I go to the login page, it's logging me automatically without asking my login/password.
As I understand, the problem in logged_in(). It works incorrectly if you use "remember me".
See the AuthController: login() checks "$this->auth->check()", but logged_in() checks only "Services::authentication()->isLoggedIn()".
public function check(): bool { if ($this->isLoggedIn()) { return true; } ... more actions ... }
One of this "more actions" is checking "remember me" functionality.
So I've changed logged_in() function from
return Services::authentication()->isLoggedIn();
to
Services::authentication()->check()
Works ok now!
The text was updated successfully, but these errors were encountered: