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)
|
mail(to: email, subject: @subject)
|
||||||
end
|
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)
|
def invite_instructeur(user, reset_password_token)
|
||||||
@reset_password_token = reset_password_token
|
@reset_password_token = reset_password_token
|
||||||
@user = user
|
@user = user
|
||||||
|
@ -139,7 +145,8 @@ class UserMailer < ApplicationMailer
|
||||||
'france_connect_merge_confirmation',
|
'france_connect_merge_confirmation',
|
||||||
"new_account_warning",
|
"new_account_warning",
|
||||||
"ask_for_merge",
|
"ask_for_merge",
|
||||||
"invite_instructeur"
|
"invite_instructeur",
|
||||||
|
"custom_confirmation_instructions"
|
||||||
].include?(action_name)
|
].include?(action_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue