forked from abner/for-legacy-web
fix: correctly specify headers when removing MFA
This commit is contained in:
@@ -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!,
|
||||
|
||||
Reference in New Issue
Block a user