소스 검색

Don't send a notification to the dummy email address of the default admin account (#21421).

git-svn-id: http://svn.redmine.org/redmine/trunk@15402 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.3.0
Jean-Philippe Lang 8 년 전
부모
커밋
a9d9fe14f9
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5
    0
      app/models/mailer.rb

+ 5
- 0
app/models/mailer.rb 파일 보기

@@ -312,6 +312,11 @@ class Mailer < ActionMailer::Base

# Notifies user that his password was updated
def self.password_updated(user)
# Don't send a notification to the dummy email address when changing the password
# of the default admin account which is required after the first login
# TODO: maybe not the best way to handle this
return if user.admin? && user.login == 'admin' && user.mail == 'admin@example.net'

Mailer.security_notification(user,
message: :mail_body_password_updated,
title: :button_change_password,

Loading…
취소
저장