devise-multi_email icon indicating copy to clipboard operation
devise-multi_email copied to clipboard

Allow resetting password with any email

Open letiesperon opened this issue 5 years ago • 1 comments

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?

letiesperon avatar Feb 27 '20 16:02 letiesperon

This sounds pretty good, @letiesperon do you want to draft a PR on it?

allenwq avatar Feb 29 '20 03:02 allenwq