From 73c1a8fe8f2c320d76e0aca65ebf3faed49183f3 Mon Sep 17 00:00:00 2001 From: yafeilee Date: Sun, 8 Jun 2014 21:45:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20log=20=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=90=8E=E5=8F=B0=E7=99=BB=E5=BD=95=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98,=20=E5=90=8C=E6=97=B6=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E4=B8=80=E4=B8=8B=20post=20=E8=AF=B7=E6=B1=82=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=94=BE=E5=85=A5body?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/javascripts/angularjs/admin_sessions.js.coffee | 2 +- config/application.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/angularjs/admin_sessions.js.coffee b/app/assets/javascripts/angularjs/admin_sessions.js.coffee index 2b17a22..0c63fcd 100644 --- a/app/assets/javascripts/angularjs/admin_sessions.js.coffee +++ b/app/assets/javascripts/angularjs/admin_sessions.js.coffee @@ -5,7 +5,7 @@ $http url: url method: 'POST' - params: + data: username: $scope.username password: $scope.password .success (res)-> diff --git a/config/application.rb b/config/application.rb index b3c8bc0..4b2d6a7 100644 --- a/config/application.rb +++ b/config/application.rb @@ -17,6 +17,8 @@ module WBlog config.time_zone = 'Beijing' config.action_controller.action_on_unpermitted_parameters = :log + config.filter_parameters += [ :password ] + # generators config.generators.assets = false config.generators.helper = false