mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-01-12 22:27:09 +08:00
router account/register
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user