From d2926f4fe7e7a02ca05202fcebac10d0c72705a2 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 22 Jun 2016 12:42:37 -0400 Subject: [PATCH] WIP registration interstitial --- src/controllers/authentication.js | 5 +++++ src/routes/authentication.js | 1 + 2 files changed, 6 insertions(+) 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);