Node.js based forum software built for the modern web
fix: clear interstitial data if there are no additional interstitials on abort
Julian Lambdc221eb375e
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.jsindex 82eec9f566..aa36381f9d 100644--- a/src/controllers/authentication.js+++ b/src/controllers/authentication.js@@ -218,6 +218,7 @@ authenticationController.registerAbort = async (req, res) => {const { interstitials } = await user.interstitials.get(req, req.session.registration);if (!interstitials.length) {+ delete req.session.registration;return res.redirect(nconf.get('relative_path') + (req.session.returnTo || '/'));}}