修正 log 日志记录后台登录的问题, 同时调整一下 post 请求参数放入body
This commit is contained in:
parent
a4c0d16d65
commit
73c1a8fe8f
|
@ -5,7 +5,7 @@
|
|||
$http
|
||||
url: url
|
||||
method: 'POST'
|
||||
params:
|
||||
data:
|
||||
username: $scope.username
|
||||
password: $scope.password
|
||||
.success (res)->
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue