Skip to content

Commit

Permalink
fix: clear interstitial data if there are no additional interstitials…
Browse files Browse the repository at this point in the history
… on abort
  • Loading branch information
julianlam committed Sep 26, 2023
1 parent 74902e4 commit bdc221e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/authentication.js
Expand Up @@ -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 || '/'));
}
}
Expand Down

0 comments on commit bdc221e

Please sign in to comment.