password reset
Hello,
Apologies as I did check and found this exact problem was posted by someone else a year ago of not receiving an email when clicking the reset password button and entering the correct email. (Incidentally, there is no problem on resetting the password for my main Perch account with the same email.)
Apparently the only solution is to reset the password in the database. Unfortunately I am not at all familiar working directly with databases so this is will seem a very stupid question: I have opened the sql database file in a text editor but is OK to edit it directly there in the text editor? Many thanks, Kirsten
Are you saying you somehow have two accounts with the same email address?
I mean my main Perch account which holds all the licenses and the site account for one of those licenses. They both have the same email address. I can get a password reset with the former but not the latter
The former is on our site, the latter is yours. Have you configured outgoing email?
In the config file I have the PERCH_EMAIL_FROM set to the email address
But I see now from https://docs.grabaperch.com/docs/installing-perch/configuration/email/ that I needed to configure more settings to enable password reset emails. I have now configured these settings as described for gmail in the email configuration doc (and enabled less secure apps settings) but still not working.
Hello again, apologies for pestering. Still stumped by this and not sure if possible to get any further assistance? Understand if not. Many thanks
If you need to change the password in the database you need to do it directly in the database - have you asked your host how to access your database via PHPMyAdmin or the like?
It's very difficult for us to troubleshoot email issues, as we have no access to your logs. Again your host may be able to offer some insight.
Hi Rachel, Thanks. I can access the database via PHPMyAdmin from my hosting, which I have done and followed Drew's instructions to someone previously needing to reset their password in the same way:
In the perch2_users table, find your user and set the password to:
5f4dcc3b5aa765d61d8327deb882cf99
This will enable you to log in with a password of password
But it comes back as incorrect. Is this not what I should have done? Again, apologies if this is beyond the remit of the forum for you to help with
Can you turn on debug and try logging in? Let me know what it outputs.
https://docs.grabaperch.com/docs/installing-perch/configuration/debug/
Hi Drew, Would you be able to point me to the right page/file to add the
line to? Many thanks for your patience
You do not need to add that line to see debug output in admin. Just enable debug in the configuration file.
Sorry, I'm a bit confused. Don't I need the admin password which I am lacking to access admin?
Have you added debug to your config file and visited the login page?
If so you should see the debug output when you try to log in to admin. On the login page, which is where you are experiencing the problem.
Hi Rachel, Apologies, I for not realising I only needed the config debug and thank you for your patience. This is the output:
Can you confirm you only have one user with the username
netsrik
?Yes, there is only the one user with username netsrik, which is the master admin, role ID 2
If you'd set the password field to
5f4dcc3b5aa765d61d8327deb882cf99
then you should be able to log in withpassword
as your password.I did set the password to
5f4dcc3b5aa765d61d8327deb882cf99
in the database and that it what it still is -- I keep double checkingAre you editing the correct database?
It's the same one as referenced in the config.php file