mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
additional logging and removing interstitial session data if plugins don't return interstitials
This commit is contained in:
@@ -212,7 +212,9 @@ Controllers.registerInterstitial = function (req, res, next) {
|
||||
}
|
||||
|
||||
if (!data.interstitials.length) {
|
||||
return next();
|
||||
// No interstitials, redirect to home
|
||||
delete req.session.registration;
|
||||
return res.redirect('/');
|
||||
}
|
||||
|
||||
var renders = data.interstitials.map(function (interstitial) {
|
||||
|
||||
Reference in New Issue
Block a user