Skip to content
Patternfly Logo

Password strength

Info alert:Beta feature

This Beta component is currently under review and is still open for further evolution. It is available for use in product. Beta components are considered for promotion on a quarterly basis. Please join in and give us your feedback or submit any questions on the PatternFly forum or via Slack. To learn more go to our Beta components page on GitHub.

Examples

Initial state

  • Must be at least 14 characters
  • Cannot contain the word "redhat"
  • Must include at least 3 of the following: lowercase letters, uppercase letters, numbers, symbols

Invalid password

  • Must be at least 14 characters
  • Cannot contain the word "redhat"
  • Must include at least 3 of the following: lowercase letters, uppercase letters, numbers, symbols

Valid, weak password

Weak
  • Must be at least 14 characters
  • Cannot contain the word "redhat"
  • Must include at least 3 of the following: lowercase letters, uppercase letters, numbers, symbols

Valid, strong password

Strong
  • Must be at least 14 characters
  • Cannot contain the word "redhat"
  • 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.


View source on GitHub