songtianlun
43d39c3010
- 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.
15 lines
408 B
Plaintext
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>
|