New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dedicated reconfirmation mail #5087
base: main
Are you sure you want to change the base?
Add dedicated reconfirmation mail #5087
Conversation
Hi @sakuraineed, thanks for your contribution. I'm more inclined to include a dedicated reconfirmation email, as mentioned in #4145. Do you want to change this pull request to do that instead? |
2115d29
to
33e921f
Compare
Hi @tegon, thanks for the comment. |
@@ -117,8 +117,11 @@ def send_confirmation_instructions | |||
generate_confirmation_token! | |||
end | |||
|
|||
opts = pending_reconfirmation? ? { to: unconfirmed_email } : { } | |||
send_devise_notification(:confirmation_instructions, @raw_confirmation_token, opts) | |||
if pending_reconfirmation? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about change this if
to:
params = {}
params[:to] = unconformed_email if pending_reconfirmation?
send_devise_notification(:confirmation_instructions, @raw_confirmation_token, params)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your review.
I think send_devise_notification
's first argument must use each for calling Devise::Mailer#confirmation_instructions, reconfirmation_instructions
Is there anything I can do to help get this branch merged? |
This PR adds
:subject_key
to devise_mail options for reconfirmation mail subject.