Feature #43808 » change-default-admin-email.patch
| app/models/mailer.rb | ||
|---|---|---|
|
# 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,
|
||
| db/migrate/001_setup.rb | ||
|---|---|---|
|
# 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'
|
||
- « Previous
- 1
- 2
- Next »