mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
added parseInt
This commit is contained in:
@@ -60,7 +60,7 @@
|
|||||||
Auth.createRoutes = function(app) {
|
Auth.createRoutes = function(app) {
|
||||||
app.namespace(nconf.get('relative_path'), function () {
|
app.namespace(nconf.get('relative_path'), function () {
|
||||||
app.post('/logout', function(req, res) {
|
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 + ')');
|
winston.info('[Auth] Session ' + req.sessionID + ' logout (uid: ' + req.user.uid + ')');
|
||||||
|
|
||||||
var ws = require('../socket.io');
|
var ws = require('../socket.io');
|
||||||
|
|||||||
Reference in New Issue
Block a user