sample_rails_tailwind/app/views/password_resets/new.html.erb
songtianlun 43d39c3010 feat: add password reset functionality
- Implement PasswordResetsController with new and create actions
- Add views for new and edit password reset forms
- Update routes to include password reset paths
- Create migration to add reset_digest and reset_send_at to users

This commit introduces a complete password reset feature, allowing
users to request a password reset via email. It includes the
necessary controller actions, views, and database schema updates.
The user experience is enhanced with a link to the password reset
form on the login page.
2025-01-07 18:09:44 +08:00

15 lines
408 B
Plaintext

<% provide(:title, "Forget password") %>
<h1>Forget password</h1>
<div class="row">
<div class="vol-md-6 col-md-offset-3">
<%= form_with(url: password_resets_path, scope: password_reset,
local: true) do |f| %>
<%= f.label :email %>
<%= f.email_field :email, class: "form-control" %>
<%= f.submit "Submit", class: "btn btn-primary" %>
<% end %>
</div>
</div>