Implement TOTP 2FA modal; add QR code generation and recovery codes management

This commit is contained in:
Sean Morley
2024-12-13 10:48:18 -05:00
parent 7b7db1c530
commit 1b54f8ed69
6 changed files with 387 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ export const load: PageServerLoad = async (event) => {
}
);
let mfaAuthenticatorResponse = (await mfaAuthenticatorFetch.json()) as MFAAuthenticatorResponse;
let authenticators = mfaAuthenticatorResponse.data;
let authenticators = (mfaAuthenticatorResponse.data.length > 0) as boolean;
return {
props: {