Commit 8617e7df by Mine ArithmeticOp

add log see token id

parent e0d42e97
...@@ -32,11 +32,13 @@ function authCheck(client_id, token, password, callback) { ...@@ -32,11 +32,13 @@ function authCheck(client_id, token, password, callback) {
// console.log('result : ' + util.inspect(res.result, false, null, true)) // console.log('result : ' + util.inspect(res.result, false, null, true))
if (res.result) { if (res.result) {
var token_profile = (res && res.result && res.result[0]) ? res.result[0] : {}; var token_profile = (res && res.result && res.result[0]) ? res.result[0] : {};
console.log('token_profile: ' + token_profile)
var mqttauth = { var mqttauth = {
clientid: client_id, clientid: client_id,
token: token, token: token,
password: password password: password
}; };
console.log('mqttauth: ' + mqttauth)
callback(validator.auth_connect(mqttauth, token_profile)); callback(validator.auth_connect(mqttauth, token_profile));
} }
else { else {
......
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