It's common to forget your email or password, especially when you have tons of them to remember. In such a scenario, you probably have clicked on the lost password link to recover the details. But unfortunately, you never got the reset link in your inbox.
Cause:
The actual cause of this problem is still a mystery, but the solution is not. There are certain things you can do to change your email and password without needing the reset link.
Solution #1. Edit your functions.php file
To make changes in a theme's functions.php file, navigate to ../wp-content/themes/your_current_theme via FTP or file manager. Open up your functions.php file and add the following line of code.
wp_set_password(‘DesiredNewPassword', 1);
Put your desired new password in place of where it says “DesiredNewPassword.” Save the file and upload it again. Once you have logged into your website, remove the code from the file and upload again.
Solution #2. Reset your email and password via phpMyAdmin
Log in to your cpanel. Click on phpMyAdmin and select your website's database. Click on wp_users table and edit your record. Enter a new value for user_pass. Remember phpMyAdmin uses MD5 encryption, so you have to convert your password into MD5.
Choose the MD5 option from the drop down menu in Functions. Hit save and refresh your website.

0 Comments