app.kluk.fr/app/views/passwords/edit.html.erb

12 lines
554 B
Text
Raw Normal View History

2026-09-29 06:34:43 +02:00
<article class="texte">
<h1>Update your password</h1>
2026-01-12 15:52:27 +01:00
2026-09-29 06:34:43 +02:00
<%= tag.div(flash[:alert], style: "color:red") if flash[:alert] %>
2026-01-12 15:52:27 +01:00
2026-09-29 06:34:43 +02:00
<%= form_with url: password_path(params[:token]), method: :put do |form| %>
<%= form.password_field :password, required: true, autocomplete: "new-password", placeholder: "Enter new password", maxlength: 72 %><br>
<%= form.password_field :password_confirmation, required: true, autocomplete: "new-password", placeholder: "Repeat new password", maxlength: 72 %><br>
<%= form.submit "Save" %>
<% end %>
</article>