mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
Revert "if interstitials don't pass any errors back but some still exist, redirect properly"
This reverts commit 98368bbb6a, but fixes
issue #4883
This commit is contained in:
@@ -104,11 +104,7 @@ function registerAndLoginUser(req, res, userData, callback) {
|
|||||||
} else {
|
} else {
|
||||||
userData.register = true;
|
userData.register = true;
|
||||||
req.session.registration = userData;
|
req.session.registration = userData;
|
||||||
if (res.locals.isAPI) {
|
return res.json({ referrer: nconf.get('relative_path') + '/register/complete' });
|
||||||
return res.json({ referrer: nconf.get('relative_path') + '/register/complete' });
|
|
||||||
} else {
|
|
||||||
return res.redirect(nconf.get('relative_path') + '/register/complete');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user