diff --git a/src/auth/routes.js b/src/auth/routes.js index cf7de6e072..c51f235df0 100644 --- a/src/auth/routes.js +++ b/src/auth/routes.js @@ -10,8 +10,6 @@ const router = express.Router(); const authRoutes = (userConfig, User) => { const auth = authRequestHandlers(userConfig, User); - const usernameField = userConfig.useAsUsername || 'email'; - router .route('/login') .post(authValidate.login, auth.login);