Commit a0cc5f18 by zCaesar

fin

parent 33631ebd
......@@ -26,9 +26,6 @@ function authCheck(client_id, token, password, callback) {
if (require('jwt-verify').verify(token)) callback(true) // auth client device by token
else {
seneca.act('ms:tokenregistry, cmd:getAttributes, type:device, tokencode:'+token, function(err,res) {
console.log('-------------------------res-------------------------------')
console.log(res)
console.log('-------------------------res-------------------------------')
if (!err && res) {
var token_profile = (res&&res.result&&res.result[0])?res.result[0]:{};
var mqttauth = {
......
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