Skip to content

Commit

Permalink
fix: update api for 2fa disable [DHIS2-15866]
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzemp committed Sep 29, 2023
1 parent f1610eb commit f66f16f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pages/UserList/ContextMenu/Modals/Disable2FaModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ const Disable2FaModal = ({ user, refetchUsers, onClose }) => {
setLoading(true)
try {
await engine.mutate({
resource: `users/${user.id}`,
type: 'update',
partial: true,
data: { userCredentials: { twoFA: false } },
resource: `users/${user.id}/twoFA/disabled`,
type: 'create',
})
const message = i18n.t(
'Disabled two factor authentication for "{{- name}}" successfuly',
Expand Down

0 comments on commit f66f16f

Please sign in to comment.