mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
301ac279ff
commit
36e1b2ba08
@ -132,14 +132,14 @@ function start() {
|
|||||||
if (anonymousUser) {
|
if (anonymousUser) {
|
||||||
log.audit({event: "comms.auth",user:anonymousUser});
|
log.audit({event: "comms.auth",user:anonymousUser});
|
||||||
completeConnection(anonymousUser.permissions,false);
|
completeConnection(anonymousUser.permissions,false);
|
||||||
|
//TODO: duplicated code - pull non-auth message handling out
|
||||||
|
if (msg.subscribe) {
|
||||||
|
handleRemoteSubscription(ws,msg.subscribe);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
log.audit({event: "comms.auth.fail"});
|
log.audit({event: "comms.auth.fail"});
|
||||||
completeConnection(null,false);
|
completeConnection(null,false);
|
||||||
}
|
}
|
||||||
//TODO: duplicated code - pull non-auth message handling out
|
|
||||||
if (msg.subscribe) {
|
|
||||||
handleRemoteSubscription(ws,msg.subscribe);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user