users: add route to disable 2fa

This commit is contained in:
Girish Ramakrishnan
2021-04-14 20:45:13 -07:00
parent 6d214cf0f2
commit f15714182b
3 changed files with 16 additions and 0 deletions
+1
View File
@@ -180,6 +180,7 @@ function initializeExpressSync() {
router.post('/api/v1/users/:userId/create_invite', json, token, authorizeUserManager, routes.users.load, routes.users.createInvite);
router.post('/api/v1/users/:userId/avatar', json, token, authorizeUserManager, routes.users.load, multipart, routes.users.setAvatar);
router.del ('/api/v1/users/:userId/avatar', token, authorizeUserManager, routes.users.load, routes.users.clearAvatar);
router.post('/api/v1/users/:userId/twofactorauthentication_disable', json, token, authorizeUserManager, routes.users.load, routes.users.disableTwoFactorAuthentication);
// Group management
router.get ('/api/v1/groups', token, authorizeUserManager, routes.groups.list);