diff --git a/elevate-mentoring/constants/routes.js b/elevate-mentoring/constants/routes.js index ced189d0..45814f50 100644 --- a/elevate-mentoring/constants/routes.js +++ b/elevate-mentoring/constants/routes.js @@ -885,17 +885,6 @@ module.exports = { functionName: 'entityTypeRead', }, }, - { - sourceRoute: '/interface/v1/account/login', - type: 'POST', - inSequence: true, - orchestrated: true, - targetRoute: { - path: '/mentoring/v1/role-permission-mapping/list', - type: 'POST', - functionName: 'rolePermissions', - }, - }, { sourceRoute: '/mentoring/v1/role-permission-mapping/list', type: 'POST', diff --git a/elevate-mentoring/controllers/mentoring.js b/elevate-mentoring/controllers/mentoring.js index fca2c95b..7b1f0803 100644 --- a/elevate-mentoring/controllers/mentoring.js +++ b/elevate-mentoring/controllers/mentoring.js @@ -23,18 +23,10 @@ const entityTypeRead = async (req, res, responses) => { }) } -const rolePermissions = async (req, res, responses) => { - const selectedConfig = routeConfigs.routes.find((obj) => obj.sourceRoute === req.sourceRoute) - return await requesters.post(req.baseUrl, selectedConfig.targetRoute.path,req.body,{ - 'X-auth-token': `bearer ${responses.user.result.access_token}`, - }) -} - mentoringController = { createProfile, updateUser, entityTypeRead, - rolePermissions, } module.exports = mentoringController diff --git a/elevate-user/constants/routes.js b/elevate-user/constants/routes.js index 2279c444..efebefca 100644 --- a/elevate-user/constants/routes.js +++ b/elevate-user/constants/routes.js @@ -44,17 +44,6 @@ module.exports = { functionName: 'entityTypeRead', }, }, - { - sourceRoute: '/interface/v1/account/login', - type: 'POST', - inSequence: true, - orchestrated: true, - targetRoute: { - path: '/user/v1/account/login', - type: 'POST', - functionName: 'loginUser', - }, - }, { sourceRoute: '/user/v1/account/login', type: 'POST', @@ -782,6 +771,17 @@ module.exports = { type: 'POST', }, }, + { + sourceRoute: '/user/v1/account/changePassword', + type: 'POST', + priority: 'MUST_HAVE', + inSequence: false, + orchestrated: false, + targetRoute: { + path: '/user/v1/account/changePassword', + type: 'POST', + }, + } ], } diff --git a/elevate-user/controllers/user.js b/elevate-user/controllers/user.js index a048feb5..bff9556d 100644 --- a/elevate-user/controllers/user.js +++ b/elevate-user/controllers/user.js @@ -20,16 +20,10 @@ const entityTypeRead = async (req, res, responses) => { }) } -const loginUser = async (req, res, responses) => { - const selectedConfig = routeConfigs.routes.find((obj) => obj.sourceRoute === req.sourceRoute) - return await requesters.post(req.baseUrl, selectedConfig.targetRoute.path, req.body) -} - const userController = { createUser, updateUser, entityTypeRead, - loginUser, } module.exports = userController