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.jsindex 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 dataif (req.body.hasOwnProperty('returnTo') && !req.session.returnTo) {diff --git a/src/routes/authentication.js b/src/routes/authentication.jsindex 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);