v1.18.x
Baris Usakli 6 years ago
parent b86f155690
commit 8808a03307

@ -39,7 +39,7 @@ module.exports = function (app, middleware) {
};
function validateTokenIfRequiresLogin(requiresLogin, cid, req, res, callback) {
var uid = req.query.uid;
var uid = parseInt(req.query.uid, 10) || 0;
var token = req.query.token;
if (!requiresLogin) {

Loading…
Cancel
Save