mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +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) => {
|
||||
if (req.uid) {
|
||||
if (req.uid && req.session.registration) {
|
||||
// Email is the only cancelable interstitial
|
||||
delete req.session.registration.updateEmail;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user