-
- 573 Posts
Hi,
i have locked myself out of the manager.. i have seen the tutorial on how to unlock.. i go to change the user_attributes table in phpmyadmin but i do not see any code to change, eek!
g.
-
- 186 Posts
The table to change is "modx_manager_users" (assuming that you do not use another prefix than "modx").
When you browse this table you should see a record where the username is "admin".
Set the password field to a new value (do not forget to set the "MD5" encryption option!) or, if that record does not exist (which I do not believe) create a new record with "admin" as the username.
-
- 573 Posts
Hi,
thanks for getting back to me, do i set the password field to 0 ?
i changed it to zero, but i still get locked out.
cheers,
g
-
- 186 Posts
Nope. You set it - in plain text - to the password you want. By using the MD5-option it will be encrypted.
(It has to be encrypted to work in the login-screen.)
-
- 186 Posts
This would be a last resort, and might be a bit risky (due to relations to other user-tables)
Can you provide a screenshot of the admin-record in your myphpadmin?
I still believe that the encryption didn’t work. If it works you’ll see a strange sequence of characters and numbers in the password field. Do you?
-
- 573 Posts
i have fixed the problem, i deleted the user and added them again.
-
- 186 Posts
Fine! Strange, though. I wouldn’t have dared to delete the "undeletable" admin-user. Good to know that it works.
The admin user is not undeletable, it’s the admin role that can’t be deleted. I always make myself a new admin user and delete the default one immediately after installation; why give a potential hacker half the information he needs to break into my manager?