Recently I had to create a password reset form for one of my project.The default password reset form works great but I needed the form to match theme layout and design of theme .I tried to use wordpress default functions as much as possible. Here is how you can make a custom password reset form for wordpress.
Step 1) THE FORM HTML
Four important things note here
- I have included 4 js files which are required to make the password strength meter work.
$_GET['login']: Saves the username in hidden text field
$_GET['key']: Saves the key in hidden text field
- And to show password strength meter we have to use a container with id “pass-strength-result”
Step 2) AJAX CALL ON FORM SUBMIT
Step 3) CHECK & UPDATE USER PASSWORD