Skip to content

Commit

Permalink
fix: update api for 2fa disable [DHIS2-15866] (#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzemp authored Oct 10, 2023
1 parent cbc8684 commit 6419819
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 6419819

Please sign in to comment.