Password strength pattern.

November 2, 2023 ยท View on GitHub

Check the strength of a password.

Configuration

OptionTypeDefaultDescription
zxcvbnstringcdnjsLocation to load zxcvbn from. Defaults to cdnjs

Examples

Simple

<input type="password" class="pat-passwordstrength" />

Custom zxcvbn location

<input
    type="password"
    class="pat-passwordstrength"
    data-pat-passwordstrength="zxcvbn: //lowe.github.io/tryzxcvbn/zxcvbn.js"
/>