I am getting a strange issue on an AC7 site where if an administrative user tries to login, it gives the error "This account has been disabled."
I tried using the reset admin script (viewtopic.php?f=47&t=7778#p32968), however it then gives an error that "Admin recovery is not enabled!" Is there a way that I can enable admin recovery directly from the database so that I can run the script successfully?
This account has been disabled
-
- Ensign (ENS)
- Posts: 17
- Joined: Wed Oct 24, 2007 4:43 pm
- Location: Fair Oaks, CA
- Contact:
This account has been disabled
Russ Miller
GFX Internet Services
Design - Development - Hosting
http://www.GFXInternetServices.com/
GFX Internet Services
Design - Development - Hosting
http://www.GFXInternetServices.com/
Re: This account has been disabled
Well make sure that you made following change in recovery script in order to enable it. Locate following code
Then update it as below
Now admin account will be reset to username admin@ablecommerce.com and password to password. Better update username and password as well to your desired username and password. Save the script and finally execute it to achieve desired results.
On the other hand major need of using reset script is when you forgot your admin password and there is no way to get it back for example you didn't configured SMTP settings etc. If account is disabled just because of that you mistakenly typed wrong password then you can go to ac_Users table, locate your user name and then for this user change IsDisabled field value from true to false.
Code: Select all
bool enabled = false;
Code: Select all
bool enabled = true;
On the other hand major need of using reset script is when you forgot your admin password and there is no way to get it back for example you didn't configured SMTP settings etc. If account is disabled just because of that you mistakenly typed wrong password then you can go to ac_Users table, locate your user name and then for this user change IsDisabled field value from true to false.
-
- Ensign (ENS)
- Posts: 17
- Joined: Wed Oct 24, 2007 4:43 pm
- Location: Fair Oaks, CA
- Contact:
Re: This account has been disabled
Thanks for the reply Mazhar. I was thinking the account was locked out, but the IsApproved was set to false for some reason. Now I am back in!
Russ Miller
GFX Internet Services
Design - Development - Hosting
http://www.GFXInternetServices.com/
GFX Internet Services
Design - Development - Hosting
http://www.GFXInternetServices.com/