• I just thought this might be useful to some other people out there. I lost my WordPress passwords, and wanted an easy way of resetting them. I made a quick & dirty PHP script that can do it. Here is the code
    Simply copy this code and paste it into a file named whatever.php and throw it in your root WordPress directly(in the same directory as wp-config.php). Then load it up in your browser, type in your username and the new password you want to use, hit submit, and you’re done.
    The most important step is the last. DELETE THE FILE. If you leave it there, anyone can reset your passwords to whatever they want.

Viewing 9 replies - 1 through 9 (of 9 total)
  • But if you’ve lost it, why not use the ‘Lost Password’ feature that is already there ??

    Thread Starter Anonymous

    Cause it didn’t work for me. Just sent blank login and non-working password. I believe others have had this problem, and have seen people suggesting to use PHPMyAdmin in previous threads. This is easier

    The problem was a bug with 1.2 that has since been fixed.

    Fair enough 🙂

    Thread Starter Anonymous

    When you say fixed – what release would that fix be in?

    The next release. Actually the updated/corrected wp-login.php is available in the CVS(at sourceforge) and I posted the “fix” here in the forums, too.

    Thread Starter Anonymous

    hey anonymous, i got locked out of my admin account and dont know how to use phpmyadmin so i was really excited about your solution, but when i loaded whatever.php in my browser and filled it out, it sent me to wp_pw_change.php which doesnt seem to exist. am i doing something wrong? should i get a copy of wp_pw_change.php and upload it?

    I tried your code and I have also tried the pasword reset utility. The pasword reset utility never sent me a new password in my email. I tired it so many times. When I used the code posted above it said my password was changed but I still can’t log in. It keeps telling me: Error: Incorrect password.

    What is there left for me to do?? Should I just remove everything and start from scratch??

    Try here:
    http://www.tamba2.org.uk/wordpress/phpmyadmin/
    and delete your wp-content/cache directory before trying to login with the new details.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘WordPress password reset utility’ is closed to new replies.