This commit is contained in:
jysperm
2014-07-26 11:24:52 +08:00
parent 70b9730e02
commit eb8d1c1220
5 changed files with 23 additions and 16 deletions

View File

@@ -13,7 +13,7 @@ exports.post '/update_password', (req, res) ->
child_process.exec "echo '#{req.account.username}:#{req.body.password}' | sudo chpasswd", (err, stdout, stderr) ->
throw err if err
res.json 200, {}
res.json {}
exports.post '/kill', (req, res) ->
pid = parseInt req.body.pid