Ajoute un mailer pour l'envoi du lien de confirmation de mail customisé

This commit is contained in:
Kara Diaby 2024-07-02 12:05:06 +00:00
parent 6a9c489c7f
commit d6defce137
No known key found for this signature in database
GPG key ID: C4D1B0CF9F24D759

View file

@ -36,6 +36,12 @@ class UserMailer < ApplicationMailer
mail(to: email, subject: @subject)
end
def custom_confirmation_instructions(user, token)
@user = user
@token = token
mail(to: @user.email, subject: 'Confirmez votre email')
end
def invite_instructeur(user, reset_password_token)
@reset_password_token = reset_password_token
@user = user
@ -139,7 +145,8 @@ class UserMailer < ApplicationMailer
'france_connect_merge_confirmation',
"new_account_warning",
"ask_for_merge",
"invite_instructeur"
"invite_instructeur",
"custom_confirmation_instructions"
].include?(action_name)
end
end