Change MailHandler 403 error message.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3202 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-12-20 09:45:04 +00:00
parent cf9bb2699f
commit e92802508e
1 changed files with 2 additions and 2 deletions

View File

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