From ff57dbddba081cac32a7bd9bca3ee0a9df8694c1 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Thu, 8 Sep 2022 11:19:26 +0100 Subject: [PATCH] fix: correctly specify headers when removing MFA --- external/lang | 2 +- .../settings/account/MultiFactorAuthentication.tsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/external/lang b/external/lang index bb3470b8..74403847 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit bb3470b838a3c8ffa39d11aaf5eef7fd92d97ae3 +Subproject commit 7440384751d251ae40064c4a5da8cf5a0dd0a016 diff --git a/src/components/settings/account/MultiFactorAuthentication.tsx b/src/components/settings/account/MultiFactorAuthentication.tsx index a65ef824..8341f756 100644 --- a/src/components/settings/account/MultiFactorAuthentication.tsx +++ b/src/components/settings/account/MultiFactorAuthentication.tsx @@ -100,7 +100,11 @@ export default function MultiFactorAuthentication() { // Decide whether to disable or enable. if (mfa!.totp_mfa) { // Disable TOTP authentication - await client.api.delete("/auth/mfa/totp", toConfig(ticket.token)); + await client.api.delete( + "/auth/mfa/totp", + {}, + toConfig(ticket.token), + ); setMFA({ ...mfa!,