mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27: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
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue