GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit 667a7ed9 authored by jplang's avatar jplang

Mail handler: set mail_notification to only_my_events when creating a new user (#13341).

git-svn-id: https://svn.redmine.org/redmine/trunk@11590 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent f7f23fca
......@@ -436,6 +436,7 @@ class MailHandler < ActionMailer::Base
user.lastname = '-' if user.lastname.blank?
user.language = Setting.default_language
user.generate_password = true
user.mail_notification = 'only_my_events'
unless user.valid?
user.login = "user#{Redmine::Utils.random_hex(6)}" unless user.errors[:login].blank?
......
......@@ -768,6 +768,7 @@ class MailHandlerTest < ActiveSupport::TestCase
assert_equal expected[0], user.login
assert_equal expected[1], user.firstname
assert_equal expected[2], user.lastname
assert_equal 'only_my_events', user.mail_notification
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment