Commit e9280250 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Change MailHandler 403 error message.

git-svn-id: svn+ssh:// e93f8b46-1217-0410-a6f0-8f06a7374b81
parent cf9bb269
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment