From 740388492fc744c4bc1462769640ab3d18bdec20 Mon Sep 17 00:00:00 2001 From: Andrew Rodrigues <psycho.bunny@hotmail.com> Date: Tue, 16 Apr 2019 17:51:52 -0400 Subject: [PATCH] fix: #7545 --- src/routes/authentication.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);