|
|
|
@ -120,6 +120,11 @@ Auth.reloadRoutes = function (router, callback) {
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var multipart = require('connect-multiparty');
|
|
|
|
|
var multipartMiddleware = multipart();
|
|
|
|
|
var middlewares = [multipartMiddleware, Auth.middleware.applyCSRF, Auth.middleware.applyBlacklist];
|
|
|
|
|
|
|
|
|
|
router.post('/register', middlewares, controllers.authentication.register);
|
|
|
|
|
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('/register/abort', controllers.authentication.registerAbort);
|
|
|
|
|