From bf1333ece9f1cba9d0397b4cd3259b107ab25d4f Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Fri, 6 Nov 2015 16:11:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E9=80=80=E5=87=BA=E5=81=B6?= =?UTF-8?q?=E5=B0=94=E6=8A=A5500?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/account_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index af501fdf9..b71220df1 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -21,7 +21,7 @@ class AccountController < ApplicationController # prevents login action to be filtered by check_if_login_required application scope filter skip_before_filter :check_if_login_required - + protect_from_forgery :except => [:login,:logout] # Login request and validation def login if request.get?