add missing minlength attribute on "new password" inputs

This commit is contained in:
byte[] 2021-02-26 00:47:45 -05:00
parent fad734b50c
commit 7030b02183
4 changed files with 7 additions and 7 deletions

View file

@ -36,7 +36,7 @@ defmodule PhilomenaWeb.RegistrationController do
end end
def edit(conn, _params) do def edit(conn, _params) do
render(conn, "edit.html") render(conn, "edit.html", title: "Account Settings")
end end
defp assign_email_and_password_changesets(conn, _opts) do defp assign_email_and_password_changesets(conn, _opts) do

View file

@ -6,11 +6,11 @@ h1 Reset password
p Oops, something went wrong! Please check the errors below. p Oops, something went wrong! Please check the errors below.
.field .field
= password_input f, :password, class: "input", placeholder: "New password" = password_input f, :password, class: "input", placeholder: "New password", minlength: 12
= error_tag f, :password = error_tag f, :password
.field .field
= password_input f, :password_confirmation, class: "input", placeholder: "Confirm new password" = password_input f, :password_confirmation, class: "input", placeholder: "Confirm new password", minlength: 12
= error_tag f, :password_confirmation = error_tag f, :password_confirmation
div div

View file

@ -53,11 +53,11 @@ h3 Change password
p Oops, something went wrong! Please check the errors below. p Oops, something went wrong! Please check the errors below.
.field .field
= password_input f, :password, class: "input", placeholder: "New password" = password_input f, :password, class: "input", placeholder: "New password", minlength: 12
= error_tag f, :password = error_tag f, :password
.field .field
= password_input f, :password_confirmation, class: "input", placeholder: "Confirm new password" = password_input f, :password_confirmation, class: "input", placeholder: "Confirm new password", minlength: 12
= error_tag f, :password_confirmation = error_tag f, :password_confirmation
.field .field

View file

@ -22,10 +22,10 @@ h1 Register
.fieldlabel .fieldlabel
' Pick a good strong password - longer is better! Minimum of 12 characters. ' Pick a good strong password - longer is better! Minimum of 12 characters.
.field .field
= password_input f, :password, class: "input", placeholder: "Password", required: true = password_input f, :password, class: "input", placeholder: "Password", required: true, minlength: 12
= error_tag f, :password = error_tag f, :password
.field .field
= password_input f, :password_confirmation, class: "input", placeholder: "Confirm password", required: true = password_input f, :password_confirmation, class: "input", placeholder: "Confirm password", required: true, minlength: 12
= error_tag f, :password_confirmation = error_tag f, :password_confirmation
= render PhilomenaWeb.CaptchaView, "_captcha.html", name: "registration", conn: @conn = render PhilomenaWeb.CaptchaView, "_captcha.html", name: "registration", conn: @conn