2018-04-05 12:36:29 +02:00
|
|
|
class AdministrateurMailer < ApplicationMailer
|
|
|
|
layout 'mailers/layout'
|
|
|
|
|
2018-05-03 18:30:40 +02:00
|
|
|
def activate_before_expiration(administrateur, reset_password_token)
|
2018-04-05 12:36:29 +02:00
|
|
|
@administrateur = administrateur
|
2018-05-03 18:30:40 +02:00
|
|
|
@reset_password_token = reset_password_token
|
|
|
|
@expiration_date = @administrateur.reset_password_sent_at + Devise.reset_password_within
|
2018-05-31 16:41:58 +02:00
|
|
|
@subject = "N'oubliez pas d'activer votre compte administrateur"
|
2018-05-31 23:58:10 +02:00
|
|
|
|
2018-04-05 12:36:29 +02:00
|
|
|
mail(to: administrateur.email,
|
2018-05-31 16:41:58 +02:00
|
|
|
subject: @subject,
|
2018-05-31 15:43:57 +02:00
|
|
|
reply_to: CONTACT_EMAIL)
|
2018-04-05 12:36:29 +02:00
|
|
|
end
|
|
|
|
end
|