Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Sigyn on October 05, 2017, 12:00:22 AM

Title: Admin Account cannot login/reset password?
Post by: Sigyn on October 05, 2017, 12:00:22 AM
Neither myself nor my other admin can login to our accounts. We use the emails that we made the accounts with to send an email to change the password but it doesn't send. The mods are unable to see the details needed on the account in order to make changes.

What can we do to fix this issue?
Title: Re: Admin Account cannot login/reset password?
Post by: Sir Osis of Liver on October 05, 2017, 12:20:51 AM
Go into your database, smf_members table, find your admin account, delete password_salt, enter new plain text password in passwd.  That should get you in.

Title: Re: Admin Account cannot login/reset password?
Post by: Arantor on October 05, 2017, 03:29:19 AM
The above advice is definitely accurate for 2.0, I'm not 100% sure it's the same in 2.1 after the password system was changed.
Title: Re: Admin Account cannot login/reset password?
Post by: Sir Osis of Liver on October 05, 2017, 04:04:15 PM
I looked, same fields, should work the same.  Didn't have time to try it.
Title: Re: Admin Account cannot login/reset password?
Post by: Arantor on October 05, 2017, 05:07:11 PM
Quote from: Sir Osis of LiverĀ on October 05, 2017, 04:04:15 PM
I looked, same fields, should work the same.  Didn't have time to try it.


The contents and underlying logic is somewhat different now. SHA1 is no longer the password format, for example, and password salt is used in a different way now.
Title: Re: Admin Account cannot login/reset password?
Post by: Sir Osis of Liver on October 05, 2017, 05:18:51 PM
Just tried it, doesn't work in 2.1.  Is there another way to do it?

@Sigyn - couple of options that do work, if you can register a new account, do that, then go into smf_members and change id_group of new member to 1.  Or you can do same for one of your moderators, and have them reset password in your existing admin account.
Title: Re: Admin Account cannot login/reset password?
Post by: Illori on October 05, 2017, 07:25:51 PM
we dont even know for sure that the op is using SMF 2.0 or SMF 2.1. looking at prior posts i would think SMF 2.0.
Title: Re: Admin Account cannot login/reset password?
Post by: Sir Osis of Liver on October 05, 2017, 11:45:19 PM
Well, my first advice works in 2.0, second method works in 2.0 and 2.1, so one or the other should be applicable.