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.
7 lines
171 B
Ruby
7 lines
171 B
Ruby
class AddResetToUsers < ActiveRecord::Migration[8.0]
|
|
def change
|
|
add_column :users, :reset_digest, :string
|
|
add_column :users, :reset_send_at, :datetime
|
|
end
|
|
end
|