mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
misc fixes
handle spider uids properly
This commit is contained in:
@@ -226,7 +226,7 @@ module.exports = function (middleware) {
|
||||
middleware.registrationComplete = function (req, res, next) {
|
||||
// If the user's session contains registration data, redirect the user to complete registration
|
||||
if (!req.session.hasOwnProperty('registration')) {
|
||||
return next();
|
||||
return setImmediate(next);
|
||||
}
|
||||
if (!req.path.endsWith('/register/complete')) {
|
||||
// Append user data if present
|
||||
@@ -234,7 +234,7 @@ module.exports = function (middleware) {
|
||||
|
||||
controllers.helpers.redirect(res, '/register/complete');
|
||||
} else {
|
||||
return next();
|
||||
return setImmediate(next);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user