Password reset(not seeing the logs)

Permalink
Hello,

I'm trying to login my default admin account (Concrete5.7), but forgot my password. I've tried the password reset function, but it doesn't send an email.

I've checked the address in the database for the account, which is correct. Then I checked in the Logs table if there was a log of the reset email being sent so I could find the link, but there's no log of the email. Are the emails stored somewhere differently since 5.7?

I also tried adding a new user(in the database to Users), to test if it had something to do with my address (tried a different one) but that email doesn't show up in the logs as well.

Is there a way I can retrieve the password from the Upassword field in the Users table? Or is it encrypted in a way I can't get to it?

I searched the forums and saw a solution I didn't fully understand and try yet.
http://www.concrete5.org/community/forums/jobs1/password-reset-not-...
And this snippet specifically:
<?php
/**
* This script will reset your admin password to "password"
* It should be named site_post.php and placed at [your web root]/config/site_post.php
* After it's been copied, load your website, and your admin password will be reset
* **** REMEMBER TO DELETE THIS FILE AFTERWARDS, OR YOUR PASSWORD WILL BE CONSTANTLY RESET *****
* Enjoy. james@jamesshannon.com
*/
$ui = UserInfo::getByID(USER_SUPER_ID);
$ui->changePassword('password');
echo "Your admin password was updated. Remove the file located at config/site_post.php and log in with the following credentials:<br />";
if (USER_REGISTRATION_WITH_EMAIL_ADDRESS) {
echo "Email Address: " . $ui->getUserEmail();
} else {
echo "Username: " . $ui->getUserName();


Site.php does not exist in 5.7 but now I think it's in the application directory and config/app.php. but it's pretty much empty, I will try and paste the snippet there and report back.



I hope it works, or you guys have another way, otherwise it'll be reinstalling concrete...

 
hutman replied on at Permalink Best Answer Reply
hutman
What version of 5.7 are you using? I have an install of 5.7.5.1 and when I do the Password Reset link on the Login page I can see the email in the Logs table in the database.

If that doesn't happen for you, you could checkout this post as well, it's for 5.7:https://www.concrete5.org/community/forums/installation/password-res...
bolle46 replied on at Permalink Reply
Thanks for the reply!
I'm using 5.7.5.2 . But somehow the emails are not logged.
And thanks for the link, I'll try the php script.
bolle46 replied on at Permalink Reply
The method in the link worked! I still don't understand why the password recovery emails aren't logged and sent, although as far as I know I haven't done anything to setup email on my server so maybe there's the issue.
hutman replied on at Permalink Reply
hutman
If you login to the Dashboard and go to System & Settings and then Logging Settings (toward the bottom), is your "Log Emails Sent" checked? If not that's probably why the emails were not being logged.
bolle46 replied on at Permalink Reply
It's checked, I haven't touched any of the settings, It is logging other events, so somewhere in the forgot password script there's probably an error(probably because I've altered something). I'll try and debug it, but it's gonna take a while as I haven't got a clue where to start.