mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
feat: allow registration interstitial abort to also follow returnTo
This commit is contained in:
@@ -219,9 +219,9 @@ authenticationController.registerComplete = function (req, res, next) {
|
||||
|
||||
authenticationController.registerAbort = function (req, res) {
|
||||
if (req.uid) {
|
||||
// Clear interstitial data and go home
|
||||
// Clear interstitial data and continue on...
|
||||
delete req.session.registration;
|
||||
res.redirect(`${nconf.get('relative_path')}/`);
|
||||
res.redirect(nconf.get('relative_path') + req.session.returnTo);
|
||||
} else {
|
||||
// End the session and redirect to home
|
||||
req.session.destroy(() => {
|
||||
|
||||
Reference in New Issue
Block a user