mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Move over to settings.adminAuth
This commit is contained in:
@@ -22,9 +22,9 @@ var settings = require("../../settings");
|
||||
//{username:"nick",password:crypto.createHash('md5').update("foo",'utf8').digest('hex')}
|
||||
var users = [];
|
||||
|
||||
if (settings.httpAdminAuth) {
|
||||
if (settings.httpAdminAuth.user && settings.httpAdminAuth.pass) {
|
||||
users.push({username:settings.httpAdminAuth.user, password:settings.httpAdminAuth.pass});
|
||||
if (settings.adminAuth) {
|
||||
if (settings.adminAuth.user && settings.adminAuth.pass) {
|
||||
users.push({username:settings.adminAuth.user, password:settings.adminAuth.pass});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user