A password input for Ember Paper which integrates strength checking from zxcvbn.
ember install @linc-technologies/ember-paper-password
- Ember.js v3.12 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
paper-password passes most parameters through to the underlying paper-input. See the paper-input documentation for more information on which parameters are supported.
In addition to paper-input parameters, paper-password supports the following parameters:
minStrength: Integer, defaults to3. Minimum strength required for this field to pass validation; also sets the point at whichmd-warnis applied to / removed from the progress bar.strengthLabel: String, defaults to'Password strength: '. Label shown below the input to indicate password strength.strengthLevels: Array, defaults to['Very Poor', 'Poor', 'Fair', 'Good', 'Excellent']. Array of 5 strings which map tozxcvbn's strength levels 0-4.passwordErrorMessage: String, defaults to'Please enter a stronger password.'. Error message when a password is specified but does not meet the field'sminStrength.inputClass: String, defaults tonull. Additional CSS class(es) to be added to the underlyingpaper-input.
Potential improvements include:
- Displaying the feedback from zxcvbn (problems and/or suggestions)
npm run lint:hbsnpm run lint:jsnpm run lint:js -- --fix
ember test– Runs the test suite on the current Ember versionember test --server– Runs the test suite in "watch mode"ember try:each– Runs the test suite against multiple Ember versions
ember serve- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.