mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fix: register abort can error on weird session state (#11854)
This commit is contained in:
@@ -210,7 +210,7 @@ authenticationController.registerComplete = async function (req, res) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
authenticationController.registerAbort = async (req, res) => {
|
authenticationController.registerAbort = async (req, res) => {
|
||||||
if (req.uid) {
|
if (req.uid && req.session.registration) {
|
||||||
// Email is the only cancelable interstitial
|
// Email is the only cancelable interstitial
|
||||||
delete req.session.registration.updateEmail;
|
delete req.session.registration.updateEmail;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user