mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fixed the crash when going between pages, return next() in webserver.js
This commit is contained in:
@@ -31,7 +31,7 @@ var express = require('express'),
|
|||||||
}));
|
}));
|
||||||
app.use(function(req, res, next) {
|
app.use(function(req, res, next) {
|
||||||
// Don't bother with session handling for API requests
|
// Don't bother with session handling for API requests
|
||||||
if (/^\/api\//.test(req.url)) next();
|
if (/^\/api\//.test(req.url)) return next();
|
||||||
|
|
||||||
if (req.session.uid === undefined) {
|
if (req.session.uid === undefined) {
|
||||||
console.log('info: [Auth] First load, retrieving uid...');
|
console.log('info: [Auth] First load, retrieving uid...');
|
||||||
|
|||||||
Reference in New Issue
Block a user