]> source.dussan.org Git - redmine.git/commitdiff
Change MailHandler 403 error message.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 20 Dec 2009 09:45:04 +0000 (09:45 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 20 Dec 2009 09:45:04 +0000 (09:45 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3202 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/mail_handler_controller.rb

index 8bcfce630885fd6fc9e6dacf59e7a1205574550c..16f606501aa58431a307d4aabd3ad47c87de352c 100644 (file)
@@ -37,8 +37,8 @@ class MailHandlerController < ActionController::Base
   
   def check_credential
     User.current = nil
-    unless Setting.mail_handler_api_enabled? && params[:key] == Setting.mail_handler_api_key
-      render :nothing => true, :status => 403
+    unless Setting.mail_handler_api_enabled? && params[:key].to_s == Setting.mail_handler_api_key
+      render :text => 'Access denied. Incoming emails WS is disabled or key is invalid.', :status => 403
     end
   end
 end