Commit cfeb4f4a by Chavee Issariyapat

fix bug in auth_on_subscribe

parent 95ff5b89
......@@ -20,7 +20,7 @@ module.exports = function(options={}) {
}
var authstatus;
var topic = req.body.topic;
var topic = req.body.topics[0].topic;
var cachekey = 'sub:'+req.body.client_id +':'+ req.body.username+':'+topic;
var authstatus = cache.get(cachekey);
......
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