token不对的话,那就跳转到登陆页面

This commit is contained in:
lizanle 2015-11-06 16:34:37 +08:00
parent 7aff7bc20b
commit 1e33e38fe2
1 changed files with 2 additions and 1 deletions

View File

@ -663,7 +663,8 @@ class ApplicationController < ActionController::Base
if api_request? if api_request?
logger.error "Form authenticity token is missing or is invalid. API calls must include a proper Content-type header (text/xml or text/json)." logger.error "Form authenticity token is missing or is invalid. API calls must include a proper Content-type header (text/xml or text/json)."
end end
render_error "Invalid form authenticity token." #render_error "Invalid form authenticity token."
redirect_to signin_path(:login=>true)
end end
def render_feed(items, options={}) def render_feed(items, options={})