Skip to content

Node.js based forum software built for the modern web

WIP registration interstitial

Julian Lamd2926f4fe7e7
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js
index f4729cffb3..2879691dd1 100644
--- a/src/controllers/authentication.js
+++ b/src/controllers/authentication.js
@@ -128,6 +128,11 @@ function addToApprovalQueue(req, userData, callback) {
], callback);
}
+authenticationController.registerComplete = function(req, res, next) {
+ console.log(req.data);
+ res.sendStatus(200);
+};
+
authenticationController.login = function(req, res, next) {
// Handle returnTo data
if (req.body.hasOwnProperty('returnTo') && !req.session.returnTo) {
diff --git a/src/routes/authentication.js b/src/routes/authentication.js
index 62e2c66224..ad6c0f0557 100644
--- a/src/routes/authentication.js
+++ b/src/routes/authentication.js
@@ -64,6 +64,7 @@
});
router.post('/register', Auth.middleware.applyCSRF, Auth.middleware.applyBlacklist, controllers.authentication.register);
+ router.post('/register/complete', Auth.middleware.applyCSRF, Auth.middleware.applyBlacklist, controllers.authentication.registerComplete);
router.post('/login', Auth.middleware.applyCSRF, Auth.middleware.applyBlacklist, controllers.authentication.login);
router.post('/logout', Auth.middleware.applyCSRF, controllers.authentication.logout);