##// END OF EJS Templates
Change MailHandler 403 error message....
Jean-Philippe Lang -
r3088:e92802508e67
parent child
Show More
@@ -37,8 +37,8 class MailHandlerController < ActionController::Base
37 37
38 38 def check_credential
39 39 User.current = nil
40 unless Setting.mail_handler_api_enabled? && params[:key] == Setting.mail_handler_api_key
41 render :nothing => true, :status => 403
40 unless Setting.mail_handler_api_enabled? && params[:key].to_s == Setting.mail_handler_api_key
41 render :text => 'Access denied. Incoming emails WS is disabled or key is invalid.', :status => 403
42 42 end
43 43 end
44 44 end
General Comments 0
You need to be logged in to leave comments. Login now