Devise sending forgot password instructions to any email id
devise, ruby, ruby-on-rails, ruby-on-rails-3
Solution
There is a Devise configuration called `paranoid` that, when set to true, would change the message in a way to avoid e-mail enumeration. Just set `config.paranoid = true` in your Devise configuration.
Problem
I am looking for a customization in devise where if we click on forgot password it should send the mail to any e-mail id . Something like it happens in Gmail, irrespective of the email id exists or not. Screen 1 Screen 2 Currently what i have is this in which it tries to validate with the valid users in the system. The Devise, recoverable module takes care of this ``` def send_reset_password_instructions(attributes={}) recoverable = find_or_initialize_with_errors(reset_password_keys, attributes, :not_found) recoverable.send_reset_password_instructions if recoverable.persisted? recoverable end ``` How can i remove this validation and have email sent to any Email id?