songtianlun
8bb7615cb1
- Change `user.send(:activate)` to `user.activate` for clarity. - Fix typo in email parameter from `emial` to `email` in password reset. - Update render calls to include status codes for better error handling. - Modify password reset email method to accept a user parameter. - Update tests to reflect changes in password reset functionality. These changes improve the clarity of the user activation process and ensure that the password reset functionality works correctly with proper error handling and user feedback.
13 lines
397 B
Plaintext
13 lines
397 B
Plaintext
<h1>Password reset</h1>
|
|
|
|
<p>To reset your password click the link below:</p>
|
|
|
|
<%= link_to "Reset password", edit_password_reset_url(@user.reset_token,
|
|
email: @user.email) %>
|
|
|
|
<p>This link will expire in two hours.</p>
|
|
|
|
<p>
|
|
If you did not request your password to be reset, please ignore this email and your password will stay as it is.
|
|
</p>
|