@Dennis1993 opened this Issue on September 17th 2017

Hello,

I want to program a password change function as a bridge. If I change my password on the website, the password should be updated in piwik too. I tested this but the login is not possible. Is that changed in piwik 3.1.0?
How I can create a hash to set the new password?

wrong FAQ: https://piwik.org/faq/how-to/faq_191/

Systeminformation:
PHP 7.1.6
Piwik 3.1.0
Ubuntu with Apache 2.4

@Findus23 commented on September 17th 2017 Member

Hi,

Can you exactly describe what you were doing and what didn’t work?

The hash in the database is the result of the password_hash() php function of the md5 hash of the users password.

@Dennis1993 commented on September 21st 2017

I've created a hash how explained in the documentation. The login is after that not possible.
Then I have looked in the code. There is used another code: https://github.com/piwik/piwik/blob/a9038318a94cc32f0f15add5272322ff6afe71f5/core/Auth/Password.php#L25
In the documentation the Code Looks like this:
password_hash(md5("changeMe"), PASSWORD_DEFAULT)

What I'm doing wrong? It is working in your system? Maybe I make it wrong

@sgiehl commented on September 22nd 2017 Member

for me it works without any problem if I follow the steps in FAQ.

@Findus23 commented on September 22nd 2017 Member

Only thing I can think of is checking again if the username is correct. See also:
https://forum.piwik.org/t/cannot-log-into-installation/25676

@Dennis1993 commented on September 24th 2017

Now it works, I don‘t know what I‘ve do wrong. Thanks for your help! 👍🏿

This Issue was closed on September 24th 2017
Powered by GitHub Issue Mirror