[Fix #1285] Password strength is checked when user is typing
This commit is contained in:
parent
d1d8d9afe2
commit
7280b1f503
3 changed files with 50 additions and 1 deletions
|
@ -16,7 +16,14 @@
|
|||
= f.label :password do
|
||||
Mot de passe
|
||||
|
||||
= f.password_field :password, placeholder: 'Mot de passe'
|
||||
= f.password_field :password, placeholder: 'Mot de passe', onKeyUp: "javascript:DS.checkPasswordStrength(event, 'strength-bar', 'submit-password');"
|
||||
|
||||
#strength-bar.password-strength
|
||||
|
||||
|
||||
.explication
|
||||
%strong Aide :
|
||||
Une courte phrase peut être un mot de passe très sécurisé.
|
||||
|
||||
= f.hidden_field :reset_password_token, value: params[:token]
|
||||
= f.submit 'Continuer', class: 'button large primary expand', id: "submit-password", data: { disable_with: "Envoi..." }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue