|
|
@ -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');
|
|
|
|