devise: use password_complexity in User::PasswordsController
This fixes the password strength meter no longer being displayed when an admin changes their password.
This commit is contained in:
parent
ed8b19d2eb
commit
62e4f7ee32
3 changed files with 22 additions and 32 deletions
|
@ -14,9 +14,9 @@
|
|||
= f.hidden_field :reset_password_token
|
||||
|
||||
= f.label 'Nouveau mot de passe'
|
||||
= f.password_field :password, autofocus: true, autocomplete: 'off'
|
||||
= render 'password_complexity/field', { form: f, test_complexity: populated_resource.validate_password_complexity? }
|
||||
|
||||
= f.label 'Confirmez le nouveau mot de passe'
|
||||
= f.password_field :password_confirmation, autocomplete: 'off'
|
||||
|
||||
= f.submit 'Changer le mot de passe', class: 'button primary'
|
||||
= f.submit 'Changer le mot de passe', class: 'button large primary expand', id: "submit-password", data: { disable_with: "Envoi…" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue