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

FAQ doesn't work to reset admin password #12069

Closed
Dennis1993 opened this issue Sep 17, 2017 · 5 comments
Closed

FAQ doesn't work to reset admin password #12069

Dennis1993 opened this issue Sep 17, 2017 · 5 comments
Labels
answered For when a question was asked and we referred to forum or answered it. c: Website matomo.org For issues related to our matomo.org website. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.

Comments

@Dennis1993
Copy link

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
Copy link
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.

@Findus23 Findus23 added the c: Website matomo.org For issues related to our matomo.org website. label Sep 17, 2017
@sgiehl sgiehl added the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label Sep 20, 2017
@Dennis1993
Copy link
Author

Dennis1993 commented Sep 21, 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
Copy link
Member

sgiehl commented Sep 22, 2017

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

@Findus23
Copy link
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
Copy link
Author

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

@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Sep 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it. c: Website matomo.org For issues related to our matomo.org website. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.
Projects
None yet
Development

No branches or pull requests

4 participants