From d6defce1370c09c628ad3518e1d2359bf7f66bce Mon Sep 17 00:00:00 2001 From: Kara Diaby Date: Tue, 2 Jul 2024 12:05:06 +0000 Subject: [PATCH] =?UTF-8?q?Ajoute=20un=20mailer=20pour=20l'envoi=20du=20li?= =?UTF-8?q?en=20de=20confirmation=20de=20mail=20customis=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/mailers/user_mailer.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 3b1be799e..9a0a3afe1 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -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