Ajoute un mailer pour l'envoi du lien de confirmation de mail customisé
This commit is contained in:
parent
6a9c489c7f
commit
d6defce137
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue