Commit 4e0ab7d7 by Mine ArithmeticOp

check valid

parent 203665ed
...@@ -33,6 +33,9 @@ function auth_connect(mqttauth, token_profile) { ...@@ -33,6 +33,9 @@ function auth_connect(mqttauth, token_profile) {
if (token_profile.for) { if (token_profile.for) {
var found = false; var found = false;
for (var i=0; i<token_profile.for.length; i++) { for (var i=0; i<token_profile.for.length; i++) {
console.log(token_profile.for[i].clientid)
console.log(mqttauth.clientid)
console.log(token_profile.for[i].clientid == mqttauth.clientid)
if (token_profile.for[i].clientid == mqttauth.clientid) { if (token_profile.for[i].clientid == mqttauth.clientid) {
found = true; found = true;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment