mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
WIP registration interstitial
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user