diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index 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 || '/')); } }