mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-29 02:10:59 -05:00
fix: correctly specify headers when removing MFA
This commit is contained in:
parent
02eb7d83f6
commit
ff57dbddba
2 changed files with 6 additions and 2 deletions
2
external/lang
vendored
2
external/lang
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit bb3470b838a3c8ffa39d11aaf5eef7fd92d97ae3
|
Subproject commit 7440384751d251ae40064c4a5da8cf5a0dd0a016
|
|
@ -100,7 +100,11 @@ export default function MultiFactorAuthentication() {
|
||||||
// Decide whether to disable or enable.
|
// Decide whether to disable or enable.
|
||||||
if (mfa!.totp_mfa) {
|
if (mfa!.totp_mfa) {
|
||||||
// Disable TOTP authentication
|
// Disable TOTP authentication
|
||||||
await client.api.delete("/auth/mfa/totp", toConfig(ticket.token));
|
await client.api.delete(
|
||||||
|
"/auth/mfa/totp",
|
||||||
|
{},
|
||||||
|
toConfig(ticket.token),
|
||||||
|
);
|
||||||
|
|
||||||
setMFA({
|
setMFA({
|
||||||
...mfa!,
|
...mfa!,
|
||||||
|
|
Loading…
Reference in a new issue