From bdc221eb375e33284917002cdc904a3642ad3179 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 26 Sep 2023 13:37:15 -0400 Subject: [PATCH] fix: clear interstitial data if there are no additional interstitials on abort --- src/controllers/authentication.js | 1 + 1 file changed, 1 insertion(+) 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 || '/')); } }