Password Strength
출처: 문서
본문
Examples
Initial state
Password *
Indeterminate:
Must be at least 14 characters
Indeterminate:
Cannot contain the word "redhat"
Indeterminate:
Must include at least 3 of the following: lowercase letters, uppercase letters, numbers, symbols
Invalid password
Password *
Success:
Must be at least 14 characters
Error:
Cannot contain the word "redhat"
Success:
Must include at least 3 of the following: lowercase letters, uppercase letters, numbers, symbols
Valid, weak password
Password *
Error:
Weak
Success:
Must be at least 14 characters
Success:
Cannot contain the word "redhat"
Success:
Must include at least 3 of the following: lowercase letters, uppercase letters, numbers, symbols
Valid, strong password
Password *
Success:
Strong
Success:
Must be at least 14 characters
Success:
Cannot contain the word "redhat"
Success:
Must include at least 3 of the following: lowercase letters, uppercase letters, numbers, symbols
Documentation
This demo implements a password strength meter. It uses multiple helper text items in the form helper text area below the input field to indicate whether the password meets validity criteria. Once the validity criteria are met, it also places helper text in the info area above the input field to indicate the strength of the password.