summaryrefslogtreecommitdiffstats
path: root/app/models/user_import.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-07-03 09:40:05 +0000
committerGo MAEDA <maeda@farend.jp>2021-07-03 09:40:05 +0000
commit41b22756d2aad8ec6c1c936d4439c5e0c1ef4d1f (patch)
tree6a82ce32f25e7c0e337cb9e68dd3f164189a97b4 /app/models/user_import.rb
parent504e9f348992bc2d3e54b360b1659829886eb101 (diff)
downloadredmine-41b22756d2aad8ec6c1c936d4439c5e0c1ef4d1f.tar.gz
redmine-41b22756d2aad8ec6c1c936d4439c5e0c1ef4d1f.zip
Allow sending account information when importing users (#35365).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21058 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/user_import.rb')
-rw-r--r--app/models/user_import.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/user_import.rb b/app/models/user_import.rb
index 71407c14e..609c9b078 100644
--- a/app/models/user_import.rb
+++ b/app/models/user_import.rb
@@ -115,4 +115,8 @@ class UserImport < Import
object.send(:safe_attributes=, attributes, user)
object
end
+
+ def extend_object(row, item, object)
+ Mailer.deliver_account_information(object, object.password) if yes?(settings['notifications'])
+ end
end