From db243a18374c18e05893254713546c0d1982bc30 Mon Sep 17 00:00:00 2001 From: Louis Kirkham Date: Tue, 13 Feb 2024 12:41:05 +0000 Subject: [PATCH] Add min password to views --- app/views/admins/registrations/new.html.slim | 2 +- app/views/shared/users/_form_password_settings.html.slim | 2 +- app/views/users/registrations/new.html.slim | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/admins/registrations/new.html.slim b/app/views/admins/registrations/new.html.slim index d9de0f327..01e5d4a55 100644 --- a/app/views/admins/registrations/new.html.slim +++ b/app/views/admins/registrations/new.html.slim @@ -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 diff --git a/app/views/shared/users/_form_password_settings.html.slim b/app/views/shared/users/_form_password_settings.html.slim index ccf1db10c..be8e1d673 100644 --- a/app/views/shared/users/_form_password_settings.html.slim +++ b/app/views/shared/users/_form_password_settings.html.slim @@ -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 diff --git a/app/views/users/registrations/new.html.slim b/app/views/users/registrations/new.html.slim index 62ce7b07c..63411d47a 100644 --- a/app/views/users/registrations/new.html.slim +++ b/app/views/users/registrations/new.html.slim @@ -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