From bbcbfec138932cfa83a040f7c8238d49990159c5 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 16 Feb 2026 08:51:46 +0000 Subject: [PATCH] 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 --- app/models/mailer.rb | 2 +- db/migrate/001_setup.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/mailer.rb b/app/models/mailer.rb index 501b607aa..c5b2be308 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -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, diff --git a/db/migrate/001_setup.rb b/db/migrate/001_setup.rb index aa3760aa3..835c8a193 100644 --- a/db/migrate/001_setup.rb +++ b/db/migrate/001_setup.rb @@ -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'