fix: dashboard TOTP status always showing inactive

loadAuthData() didn't include totp_enabled or require_2fa in the
AuthData response. The frontend always saw undefined → false.

Now includes both fields from the database.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-03-23 20:31:06 +01:00
parent 33268b38ae
commit 456232cd82
2 changed files with 4 additions and 0 deletions

View File

@@ -51,6 +51,8 @@ export interface AuthData {
roleId: number | null;
roleName: string | null;
permissions: string[];
totp_enabled?: boolean;
require_2fa?: boolean;
}
export interface JwtPayload {