Commit 8b17b90d by zCaesar

edit length id

parent b6a5609f
...@@ -3,7 +3,8 @@ var redis = new Redis() ...@@ -3,7 +3,8 @@ var redis = new Redis()
function on_offline_redis(deviceid) { // first time to access on authhook auth_on_register function on_offline_redis(deviceid) { // first time to access on authhook auth_on_register
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (deviceid.indexOf('mqtt') === 0 || deviceid.length !== 36) { if (deviceid.indexOf('mqtt') === 0) {
// if (deviceid.indexOf('mqtt') === 0 || deviceid.length !== 36) {
resolve(true) resolve(true)
} }
else { else {
......
...@@ -3,6 +3,7 @@ var redis = new Redis() ...@@ -3,6 +3,7 @@ var redis = new Redis()
function on_register_redis(deviceid) { // first time to access on authhook auth_on_register function on_register_redis(deviceid) { // first time to access on authhook auth_on_register
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
// if (deviceid.indexOf('mqtt') === 0 || deviceid.length !== 36) {
if (deviceid.indexOf('mqtt') === 0) { if (deviceid.indexOf('mqtt') === 0) {
resolve(true) resolve(true)
} }
......
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