diff --git a/src/routes/authentication.js b/src/routes/authentication.js index 49f6233ac2..efba27052d 100644 --- a/src/routes/authentication.js +++ b/src/routes/authentication.js @@ -125,8 +125,7 @@ Auth.reloadRoutes = function (router, callback) { 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/complete', middlewares, controllers.authentication.registerComplete); router.post('/register/abort', controllers.authentication.registerAbort); router.post('/login', Auth.middleware.applyCSRF, Auth.middleware.applyBlacklist, controllers.authentication.login); router.post('/logout', Auth.middleware.applyCSRF, controllers.authentication.logout);