diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-20 09:45:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-20 09:45:04 +0000 |
commit | e92802508e670fc5f6beaee0a797482b2579e805 (patch) | |
tree | 6d54360f0ecd1187776298520403592586c7eef0 /app | |
parent | cf9bb2699fa146514b219e1fd3dce6e367f274ce (diff) | |
download | redmine-e92802508e670fc5f6beaee0a797482b2579e805.tar.gz redmine-e92802508e670fc5f6beaee0a797482b2579e805.zip |
Change MailHandler 403 error message.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3202 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/mail_handler_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/mail_handler_controller.rb b/app/controllers/mail_handler_controller.rb index 8bcfce630..16f606501 100644 --- a/app/controllers/mail_handler_controller.rb +++ b/app/controllers/mail_handler_controller.rb @@ -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 |