Did you have problems with wordpress password recovery tool?

2 replies
Yes, I forgot my password

And guess what? I went to that page where you enter your email or username and receive a link on your email.

Pretty easy, right?

...

NO!

Unfortunately, when you install wordpress, it generates a key for you that will be used to recover your password. Therefore, in the email, you get a link like:
domain.com/blog/wp-recover.php?key=somestringhere.

Here comes the problem: wp includes the "&" when generating these keys (and for some reason it seems to include it everytime I install a blog, lol), but the "&" char is used to separate the request variables sent by GET. That's why, when you click on that link, you get a "wrong key" error, because if the key is 1234567&9, wordpress will get only 1234567, which is wrong (duuh).

Solution? I have one that I use. I just open phpmyadmin on my server, go to wordpress database in the wp_users table and change that key to something else (of course, "1234" won't do as you might get up one day with all your posts deleted ). After I'm finished with that, I do the process again and I'm able to set a new password.

... Pfew
#password #problems #recovery #tool #wordpress

Trending Topics