We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10357
    • 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.
      • 27226
      • 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.
        • 10357
        • 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
          • 27226
          • 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.)
            • 10357
            • 573 Posts
            ah! thanks i have tried to do this.. but i am still locked out sad should i try deleting the user, than adding it again?
              • 27226
              • 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?
                • 10357
                • 573 Posts
                hi,

                i do see a stange squence of numbers and letters, but I still get the error message.

                screenshot:

                http://img57.imageshack.us/my.php?image=admincm8.jpg
                  • 10357
                  • 573 Posts
                  i have fixed the problem, i deleted the user and added them again.
                    • 27226
                    • 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?
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org