1 | initial version |
There are several potential solutions to this issue:
config/locales/devise.en.yml
file. For example:en:
errors:
messages:
user_not_found: "Sorry, we could not find a user with that email address."
Check that the email address entered by the user is valid and exists in the database before triggering the password reset email. This can be done by adding custom validation to the User
model or by using a gem like email_validator
.
Confirm that the email is actually sending by checking the logs in Heroku. If the email is not being sent, there may be an issue with the SMTP configuration in the config/environments/production.rb
file.
Check that the user is actually being redirected to the correct passwords/new
page when the reset password link is clicked. If the redirect is not working correctly, the user may end up on a different page that does not display the error message.
Update the versions of Devise and the dependent gems to the latest stable versions. This can be done by updating the Gemfile
and running bundle update
.