2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-07-24 17:01:22 +02:00
|
|
|
class PhishingAlertMailer < ApplicationMailer
|
|
|
|
helper MailerHelper
|
|
|
|
|
|
|
|
layout 'mailers/layout'
|
|
|
|
|
|
|
|
def notify(user)
|
|
|
|
@user = user
|
|
|
|
@subject = "Détection d'une possible usurpation de votre compte"
|
|
|
|
|
|
|
|
mail(to: user.email, subject: @subject)
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.critical_email?(action_name) = false
|
|
|
|
end
|