mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 14:17:59 +01:00
add missing minlength attribute on "new password" inputs
This commit is contained in:
parent
fad734b50c
commit
7030b02183
4 changed files with 7 additions and 7 deletions
|
@ -36,7 +36,7 @@ defmodule PhilomenaWeb.RegistrationController do
|
|||
end
|
||||
|
||||
def edit(conn, _params) do
|
||||
render(conn, "edit.html")
|
||||
render(conn, "edit.html", title: "Account Settings")
|
||||
end
|
||||
|
||||
defp assign_email_and_password_changesets(conn, _opts) do
|
||||
|
|
|
@ -6,11 +6,11 @@ h1 Reset password
|
|||
p Oops, something went wrong! Please check the errors below.
|
||||
|
||||
.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
|
||||
|
||||
.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
|
||||
|
||||
div
|
||||
|
|
|
@ -53,11 +53,11 @@ h3 Change password
|
|||
p Oops, something went wrong! Please check the errors below.
|
||||
|
||||
.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
|
||||
|
||||
.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
|
||||
|
||||
.field
|
||||
|
|
|
@ -22,10 +22,10 @@ h1 Register
|
|||
.fieldlabel
|
||||
' Pick a good strong password - longer is better! Minimum of 12 characters.
|
||||
.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
|
||||
.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
|
||||
|
||||
= render PhilomenaWeb.CaptchaView, "_captcha.html", name: "registration", conn: @conn
|
||||
|
|
Loading…
Reference in a new issue