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
logme doesn't work with token_auth since 2.15.0 Piwik version.
I did a few tests with plugins/Login/Auth.php file:
URL: https://my_piwikl/index.php?module=Login&action=logme&login=my_login&password=my_md5
with this changes:
Hello,
logme doesn't work with token_auth since 2.15.0 Piwik version.
I did a few tests with plugins/Login/Auth.php file:
URL: https://my_piwikl/index.php?module=Login&action=logme&login=my_login&password=my_md5
with this changes:
Result is:
3
anonymous
anonymous
1
anonymous
my_login
my_md5
So, code after 2.15.0 didn't use a authenticateWithTokenOrHashToken() to auth...
Next I changed function to use authenticateWithTokenOrHashToken():
@@ -50,7 +50,7 @@ public function authenticate() { if (!empty($this->hashedPassword)) { // favor authenticating by password `- return $this->authenticateWithPassword($this->login, $this->getTokenAuthSecret());` `+ return $this->authenticateWithTokenOrHashToken($this->getTokenAuthSecret(), $this->login);` } elseif (is_null($this->login)) { return $this->authenticateWithToken($this->token_auth); } elseif (!empty($this->login)) {
And now I can login using logme and token_auth again.
The text was updated successfully, but these errors were encountered: