28 lines
1.1 KiB
ERB
28 lines
1.1 KiB
ERB
<% content_for :title, t("auth.password_reset.meta_title") %>
|
|
<% content_for :robots, "noindex, nofollow" %>
|
|
|
|
<section class="auth-page">
|
|
<h1><%= t("auth.password_reset.title") %></h1>
|
|
<div class="card">
|
|
<p class="muted" style="font-size:0.9rem"><%= t("password_policy.hint") %></p>
|
|
<%= form_with url: public_password_reset_path, method: :patch, local: true do %>
|
|
<%= hidden_field_tag :token, @token %>
|
|
<%= render "shared/input_toggle",
|
|
name: :password,
|
|
label: t("auth.password_reset.new_password_label"),
|
|
input_type: "text",
|
|
required: true,
|
|
minlength: 8,
|
|
autocomplete: "new-password" %>
|
|
<%= render "shared/input_toggle",
|
|
name: :password_confirmation,
|
|
label: t("auth.password_confirmation"),
|
|
input_type: "text",
|
|
required: true,
|
|
autocomplete: "new-password" %>
|
|
<%= submit_tag t("auth.password_reset.submit"), class: "btn btn-primary" %>
|
|
<% end %>
|
|
<p class="auth-footer"><%= link_to t("auth.password_reset.back_to_login"), public_login_path %></p>
|
|
</div>
|
|
</section>
|