|
|
@ -534,7 +534,7 @@ const mapRoutes = (router) => { |
|
|
|
'/user/password/change', |
|
|
|
'/user/password/change', |
|
|
|
ncMetaAclMw(passwordChange, 'passwordChange') |
|
|
|
ncMetaAclMw(passwordChange, 'passwordChange') |
|
|
|
); |
|
|
|
); |
|
|
|
router.post('/auth/token/refresh', ncMetaAclMw(refreshToken, 'refreshToken')); |
|
|
|
router.post('/auth/token/refresh', catchError(refreshToken)); |
|
|
|
|
|
|
|
|
|
|
|
/* Google auth apis */ |
|
|
|
/* Google auth apis */ |
|
|
|
|
|
|
|
|
|
|
@ -573,10 +573,7 @@ const mapRoutes = (router) => { |
|
|
|
'/api/v1/db/auth/password/change', |
|
|
|
'/api/v1/db/auth/password/change', |
|
|
|
ncMetaAclMw(passwordChange, 'passwordChange') |
|
|
|
ncMetaAclMw(passwordChange, 'passwordChange') |
|
|
|
); |
|
|
|
); |
|
|
|
router.post( |
|
|
|
router.post('/api/v1/db/auth/token/refresh', catchError(refreshToken)); |
|
|
|
'/api/v1/db/auth/token/refresh', |
|
|
|
|
|
|
|
ncMetaAclMw(refreshToken, 'refreshToken') |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
router.get( |
|
|
|
router.get( |
|
|
|
'/api/v1/db/auth/password/reset/:tokenId', |
|
|
|
'/api/v1/db/auth/password/reset/:tokenId', |
|
|
|
catchError(renderPasswordReset) |
|
|
|
catchError(renderPasswordReset) |
|
|
@ -607,10 +604,7 @@ const mapRoutes = (router) => { |
|
|
|
'/api/v1/auth/password/change', |
|
|
|
'/api/v1/auth/password/change', |
|
|
|
ncMetaAclMw(passwordChange, 'passwordChange') |
|
|
|
ncMetaAclMw(passwordChange, 'passwordChange') |
|
|
|
); |
|
|
|
); |
|
|
|
router.post( |
|
|
|
router.post('/api/v1/auth/token/refresh', catchError(refreshToken)); |
|
|
|
'/api/v1/auth/token/refresh', |
|
|
|
|
|
|
|
ncMetaAclMw(refreshToken, 'refreshToken') |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
// respond with password reset page
|
|
|
|
// respond with password reset page
|
|
|
|
router.get('/auth/password/reset/:tokenId', catchError(renderPasswordReset)); |
|
|
|
router.get('/auth/password/reset/:tokenId', catchError(renderPasswordReset)); |
|
|
|
}; |
|
|
|
}; |
|
|
|