ember-paper-password
v0.2.0
Published
Password input with strength meter / requirements for Ember Paper
Downloads
1,014
Readme
ember-paper-password
A password input for Ember Paper which integrates strength checking from ember-cli-password-strength.
Installation
ember install ember-paper-password
Usage
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-warn
is 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
.
{{paper-password label="Password" type="password" value=password onChange=(action (mut password))}}
TODO
Potential improvements include:
- Displaying the feedback from zxcvbn (problems and/or suggestions)
Linting
npm run lint:hbs
npm run lint:js
npm run lint:js -- --fix
Running tests
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
Running the dummy application
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
License
This project is licensed under the MIT License.