fix: api.ts internes request-Typ auch auf qr_code korrigiert

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sysops
2026-03-18 01:13:38 +01:00
parent 26ab14b25b
commit 372eee7aef
+1 -1
View File
@@ -824,7 +824,7 @@ export async function changeEmail(
// ── TOTP / 2FA ──────────────────────────────────────────────────────────── // ── TOTP / 2FA ────────────────────────────────────────────────────────────
export async function getTOTPSetup(): Promise<{ secret: string; otpauth_url: string; qr_code: string }> { export async function getTOTPSetup(): Promise<{ secret: string; otpauth_url: string; qr_code: string }> {
return request<{ secret: string; otpauth_url: string; qr_code_svg: string }>("/api/auth/totp/setup"); return request<{ secret: string; otpauth_url: string; qr_code: string }>("/api/auth/totp/setup");
} }
export async function confirmTOTPSetup(code: string): Promise<{ ok: boolean }> { export async function confirmTOTPSetup(code: string): Promise<{ ok: boolean }> {