Hi, here is the quick post of the day about how to use WordPress default password strength indicator.
Here is a even more simpler method to do so.
We still need to make sure, we have 3 elements (password, repeat password and password strength indicator) using the same element IDs as we see in default WordPress pages with password indicator rendered. For example, the forget password page.
The following code shows the basic structure:
<input id="pass1" type="text" name="user_password" /> <input id="pass2" type="text" name="user_password_repeat" />
Then here is the fun part. We only need to use two lines of WordPress code to make sure that password indicator starts to work.
Hope this helps you with daily web development.