emergency password reset script (6 posts)

  1. whooami
    Posted 9 years ago #

    For those of you that, for whatever reason, cannot seem to get your administrator password stuff sorted out, I have made a script that will insert your chosen password into the database.

    It requires that you know the administrator username. Nothing else.

    It updates the administrator password, and shoots off an email.

    Even if you dont get the email, the password is still changed.

    This is not a plugin, and you do not need to be logged in to use it. Obviously, if you could login, you wouldn't need it.

    Do not upload this to your plugins directory.

    1. Unpack the zip.
    2. Upload emergency.php to the root of your WordPress install (the same directory that contains wp-config.php)
    3. Open http://www.yourdomain.com/emergency.php in your favorite browser
    4. Follow the simple instructions.
    5. When you are done, delete emergency.php off your server. Do not leave it up for someone else to come along and use.


  2. MichaelH
    Posted 9 years ago #

  3. whooami
    Posted 9 years ago #

    cool :), you might want to delete my duplicate post, it was askimtted. :P

  4. MichaelH
    Posted 9 years ago #

    Think I already got it.

  5. whooami
    Posted 9 years ago #

    I just updated emergency.php so that it performs a rudimentary check to see if the proper username for the administrator account is being submitted in the form.

    It's a simple comparison between what's in the database and what the user submits.

    I should add also, that I left off the admin e-mail verification because that seems to be a small source of the trouble. The goal was to make this as simple as humanly possible -- this way, you only need to know one thing.

    Once you've managed to change the password, you can then log in and take care of any other details like wrong e-mail addys, or using an addy that doesnt get the e-mail, etc..

  6. whooami
    Posted 8 years ago #

    here is a simpler url for you moshu :)


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.