devise-multi_email
devise-multi_email copied to clipboard
Allow resetting password with any email
Currently, devise mailer sends the reset password instructions email to the resource email: https://github.com/heartcombo/devise/blob/29943a26e61d68198666c59e07457dba3c75f581/lib/devise/mailers/helpers.rb#L34
But with multiple emails, you might want to get the reset password instructions to the email you entered, regardless of whether it's your primary email or not, right? In that case the email to should be set to opts[:email] instead.
Should we override this method? Is that something we are interested in doing?
This sounds pretty good, @letiesperon do you want to draft a PR on it?