Skip to content

Commit

Permalink
Merge pull request #654 from bitzesty/password
Browse files Browse the repository at this point in the history
Adds min password to views
  • Loading branch information
matthewford authored Feb 13, 2024
2 parents a0fb022 + db243a1 commit 3799387
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/admins/registrations/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ h1.govuk-heading-xl Create an account
required: true,
label: 'Password',
hint: ("#{@minimum_password_length} characters minimum" if @validatable),
input_html: { class: "password-strength-meter js-disable-copy medium", "data-min-password-length" => "10" }
input_html: { class: "password-strength-meter js-disable-copy medium", "data-min-password-length" => "14" }
span#password-result-span.input-group-addon
i#password-result.glyphicon.glyphicon-ok

Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/users/_form_password_settings.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ h2.govuk-heading-l
label: false,
input_html: { class: "big medium password-strength-meter js-disable-copy",
autocomplete: "off",
"data-min-password-length": "10" }
"data-min-password-length": "14" }
span#password-result-span.input-group-addon
i#password-result.glyphicon.glyphicon-ok

Expand Down
2 changes: 1 addition & 1 deletion app/views/users/registrations/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
required: true,
label: 'Password',
hint: ("#{@minimum_password_length} characters minimum" if @validatable),
input_html: { class: "password-strength-meter js-disable-copy medium govuk-input--width-10", "data-min-password-length" => "10" }
input_html: { class: "password-strength-meter js-disable-copy medium govuk-input--width-10", "data-min-password-length" => "14" }
span#password-result-span.input-group-addon
i#password-result.glyphicon.glyphicon-ok

Expand Down

0 comments on commit 3799387

Please sign in to comment.