Skip to content

Node.js based forum software built for the modern web

fix: #9772, regression from https://github.com/NodeBB/NodeBB/commit/70a04bc10577e90e28d66a647d38cafc3307a285

Barış Soner Uşaklı72710b804062
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js
index 132c0b33f7..875976a635 100644
--- a/src/controllers/authentication.js
+++ b/src/controllers/authentication.js
@@ -200,7 +200,7 @@ authenticationController.registerComplete = function (req, res, next) {
return winston.warn('[register] Interstitial callbacks processed with no errors, but one or more interstitials remain. This is likely an issue with one of the interstitials not properly handling a null case or invalid value.');
}
- done();
+ done(null, data);
} else {
// Update user hash, clear registration data in session
const payload = req.session.registration;