Password reset link has been sent to your email address,click the password reset link to reset the password by enter the new password(Which you want to use to login your WordPress dashboard) and click reset password to save the password.

Now,you can able to login your WordPress dashboard with newly changed password

Modify the functions.php file by adding the below line next to the first line <?phpwp_set_password(‘password’,username);

Replace username of your WordPress username and password which you want to use to login your WordPress password

Once edited the functions.php file and upload the edited file to required path

Login to your WordPress dashboard using new temporary password and reset the password from your dashboard

Once you successfully reset the password and remove the line wp_set_password from your active functions.php file and re-upload it to required path.This way WordPress doesn’t reset the password every single time the admin dashboard is accessed going forward