Resetting Locked Modx Account
If you can’t remember what password you used to login into your modx site and got locked out, you don’t need to wait until the system unblocks you from any further attempts.
- Connect to the database via PHPMyAdmin or mysql cli
- When a user gets locked out, the blockeduntil and failedlogincount column in the modx_user_attributes table gets set a value of when the user can try again. Run the following query:
id, is the id of the user you want to unblock.
UPDATE modx\_user\_attributes SET blockeduntil=0, failedlogincount=0 WHERE id=1;
- Login again.
To change the password:
UPDATE modx\_manager\_users SET password=md5('newpassword') WHERE id=1;