mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 22:17:31 +03:00
fix authStrategyFlags using wrong domain (#6015)
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
ccf57bee1a
commit
e025e9558b
@ -6470,7 +6470,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||
for (var i in parent.config.domains) {
|
||||
if (parent.config.domains[i].dns != null) {
|
||||
if (typeof parent.config.domains[''].authstrategies != 'object') { parent.config.domains[''].authstrategies = { 'authStrategyFlags': 0 }; }
|
||||
parent.config.domains[''].authstrategies.authStrategyFlags |= await setupDomainAuthStrategy(parent.config.domains['']);
|
||||
parent.config.domains[''].authstrategies.authStrategyFlags |= await setupDomainAuthStrategy(parent.config.domains[i]);
|
||||
} else {
|
||||
if (typeof parent.config.domains[i].authstrategies != 'object') { parent.config.domains[i].authstrategies = { 'authStrategyFlags': 0 }; }
|
||||
parent.config.domains[i].authstrategies.authStrategyFlags |= await setupDomainAuthStrategy(parent.config.domains[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user