@@ -169,7 +169,7 END_DESC | |||||
169 | desc "Send a test email to the user with the provided login name" |
|
169 | desc "Send a test email to the user with the provided login name" | |
170 | task :test, :login, :needs => :environment do |task, args| |
|
170 | task :test, :login, :needs => :environment do |task, args| | |
171 | include Redmine::I18n |
|
171 | include Redmine::I18n | |
172 |
abort l(:notice_email_error, "Please include the user login to test with. Example: |
|
172 | abort l(:notice_email_error, "Please include the user login to test with. Example: rake redmine:email:test[login]") if args[:login].blank? | |
173 |
|
173 | |||
174 | user = User.find_by_login(args[:login]) |
|
174 | user = User.find_by_login(args[:login]) | |
175 | abort l(:notice_email_error, "User #{args[:login]} not found") unless user.logged? |
|
175 | abort l(:notice_email_error, "User #{args[:login]} not found") unless user.logged? |
General Comments 0
You need to be logged in to leave comments.
Login now