Skip to content

Commit

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

Please sign in to comment.