修正 log 日志记录后台登录的问题, 同时调整一下 post 请求参数放入body

This commit is contained in:
yafeilee 2014-06-08 21:45:36 +08:00
parent a4c0d16d65
commit 73c1a8fe8f
2 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,7 @@
$http
url: url
method: 'POST'
params:
data:
username: $scope.username
password: $scope.password
.success (res)->

View File

@ -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