router account/register

This commit is contained in:
jysperm
2014-09-06 17:04:36 +08:00
parent df9f741354
commit 77cdb2472a
21 changed files with 84 additions and 57 deletions

View File

@@ -1,6 +1,8 @@
service = require './service'
monitor = require './monitor'
{pluggable} = app
app.view_hook.menu_bar.push
href: '/public/monitor/'
html: '服务器状态'
@@ -15,4 +17,11 @@ module.exports =
widget: service.widget
style:'/style/panel.css'
pluggable.account.username_filter.push (account, callback) ->
monitor.loadPasswd (passwd_cache) ->
if req.body.username in _.values(passwd_cache)
return callback false
callback true
monitor.run()