|
|
|
|
@ -7,14 +7,15 @@
|
|
|
|
|
) %> |
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
<%= form_for(@user, as: :user, html: { method: :patch }) do |f| %> |
|
|
|
|
<%= form_for(@user, as: :user, url: password_path(User), html: { method: :put }) do |f| %> |
|
|
|
|
<%= f.hidden_field :reset_password_token %> |
|
|
|
|
<div class="govuk-grid-row"> |
|
|
|
|
<div class="govuk-grid-column-two-thirds"> |
|
|
|
|
<h1 class="govuk-heading-l"> |
|
|
|
|
<%= content_for(:title) %> |
|
|
|
|
</h1> |
|
|
|
|
|
|
|
|
|
<%= f.govuk_password_field :new_password, |
|
|
|
|
<%= f.govuk_password_field :password, |
|
|
|
|
label: { text: "New password" }, |
|
|
|
|
hint: @minimum_password_length ? { text: "Your password must be at least #{@minimum_password_length} characters and hard to guess." } : nil, |
|
|
|
|
autocomplete: "new-password" |
|
|
|
|
|