Project

General

Profile

Feature #43808 » change-default-admin-email.patch

Go MAEDA, 2026-02-13 02:07

View differences:

app/models/mailer.rb
443 443
    # Don't send a notification to the dummy email address when changing the password
444 444
    # of the default admin account which is required after the first login
445 445
    # TODO: maybe not the best way to handle this
446
    return if user.admin? && user.login == 'admin' && user.mail == 'admin@example.net'
446
    return if user.admin? && user.login == 'admin' && user.mail == 'admin@dummy.invalid'
447 447

  
448 448
    deliver_security_notification(
449 449
      user,
db/migrate/001_setup.rb
288 288
    # create default administrator account
289 289
    user = User.new :firstname => "Redmine",
290 290
                    :lastname => "Admin",
291
                    :mail => "admin@example.net",
291
                    :mail => "admin@dummy.invalid",
292 292
                    :mail_notification => true,
293 293
                    :status => 1
294 294
    user.login = 'admin'
(2-2/2)