javascript - Display dummy password text with same number of characters as original password -


i have edit user page have display user details user name ,first name,last name... , password user logs in. i'm using concrete5 cant decrypt password show in password field.(input type="password") have display dummy password field,which should have same number of characters password .is there idea generate password fields having same number of asterisks original password.

instead of storing password length, not great security decision, use static length instead. here few examples of how can use placeholders give user experience without divulging password length:

<p>use static length password representation</p>  <input type="password" name="password" placeholder="*************"><br>  <input type="password" name="password" placeholder="*************"><br>  <input type="password" name="password" placeholder="*************"><br>    <p>use prompts passwords instead</p>  <input type="password" name="password" placeholder="current password"><br>  <input type="password" name="password" placeholder="new password"><br>  <input type="password" name="password" placeholder="confirm new password"><br>    <p>or leave them blank (assuming have labels)</p>  <input type="password" name="password"><br>  <input type="password" name="password"><br>  <input type="password" name="password"><br>


Comments