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

Autologin & Remember me #14790

Open
Quadratica opened this issue Aug 19, 2019 · 1 comment
Open

Autologin & Remember me #14790

Quadratica opened this issue Aug 19, 2019 · 1 comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@Quadratica
Copy link

Quadratica commented Aug 19, 2019

Hello,

i would like to have "Remember me" feature in Autologin Mode, but i know that this feature could be added in Matomo 3.12.0-b1, see below relative version code.

Despite everything, i tried to test already this functionality, but it doesn't work.
To test this function i've added "|| $action == 'logme'" in shouldHandleRememberMe() function:
https://github.com/matomo-org/matomo/blob/3.12.0-b1/plugins/Login/Login.php#L148

Below the code:

private function shouldHandleRememberMe()
{
     $module = Common::getRequestVar('module', false);
     $action = Common::getRequestVar('action', false);
     return ($module == 'Login' || $module == 'CoreHome') && (empty($action) || $action == 'index' || $action == 'login' || $action == 'logme' );
}
@tsteur tsteur added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Aug 19, 2019
@tsteur tsteur added this to the Backlog (Help wanted) milestone Aug 19, 2019
@tsteur
Copy link
Member

tsteur commented Aug 19, 2019

I'm not much into it but thought this might work. Don't have the code open though. Make sure you pass the parameters properly etc. If you manage to figure out how to make it work feel free to create a PR 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants