##// END OF EJS Templates
Don't send a notification to the dummy email address of the default admin account (#21421)....
Jean-Philippe Lang -
r15020:a9d9fe14f986
parent child
Show More
@@ -312,6 +312,11 class Mailer < ActionMailer::Base
312 312
313 313 # Notifies user that his password was updated
314 314 def self.password_updated(user)
315 # Don't send a notification to the dummy email address when changing the password
316 # of the default admin account which is required after the first login
317 # TODO: maybe not the best way to handle this
318 return if user.admin? && user.login == 'admin' && user.mail == 'admin@example.net'
319
315 320 Mailer.security_notification(user,
316 321 message: :mail_body_password_updated,
317 322 title: :button_change_password,
General Comments 0
You need to be logged in to leave comments. Login now