Node.js based forum software built for the modern web
added parseInt
Baris Soner Usakli84446e255d41
diff --git a/src/routes/authentication.js b/src/routes/authentication.jsindex 84d1173945..0e0f61c79c 100644--- a/src/routes/authentication.js+++ b/src/routes/authentication.js@@ -60,7 +60,7 @@Auth.createRoutes = function(app) {app.namespace(nconf.get('relative_path'), function () {app.post('/logout', function(req, res) {- if (req.user && req.user.uid > 0) {+ if (req.user && parseInt(req.user.uid, 10) > 0) {winston.info('[Auth] Session ' + req.sessionID + ' logout (uid: ' + req.user.uid + ')');var ws = require('../socket.io');