Change default admin email to admin@dummy.invalid for clarity (#43808).

Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@24416 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2026-02-16 08:51:46 +00:00
parent 9af55cc312
commit bbcbfec138
2 changed files with 2 additions and 2 deletions

View File

@@ -443,7 +443,7 @@ class Mailer < ActionMailer::Base
# 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'
return if user.admin? && user.login == 'admin' && user.mail == 'admin@dummy.invalid'
deliver_security_notification(
user,

View File

@@ -288,7 +288,7 @@ class Setup < ActiveRecord::Migration[4.2]
# create default administrator account
user = User.new :firstname => "Redmine",
:lastname => "Admin",
:mail => "admin@example.net",
:mail => "admin@dummy.invalid",
:mail_notification => true,
:status => 1
user.login = 'admin'