From c0fbd22b687942bff9dd87e97ac151d73e9c24c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Sun, 25 Feb 2024 11:01:19 +0100 Subject: [PATCH] Add manual entry code --- src/routes/console/account/mfa.svelte | 44 ++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/src/routes/console/account/mfa.svelte b/src/routes/console/account/mfa.svelte index 2f584fb18..389affa27 100644 --- a/src/routes/console/account/mfa.svelte +++ b/src/routes/console/account/mfa.svelte @@ -13,6 +13,7 @@ export let showSetup = false; export let showRecoveryCodes = false; + let copyParent: HTMLElement; let code: string; let type: Models.MfaType = null; async function addAuthenticator(): Promise { @@ -48,13 +49,43 @@ Install an authenticator app on your mobile device, open it and scan the provided QR code or enter it manually.

-
- {#await addAuthenticator()} + + {#await addAuthenticator()} +
- {:then qr} +
+ {:then qr} +
MFA QR Code - {/await} -
+
+ or + +
+ + + +
+ +
+
+ {#key copyParent} + + + {/key} +
+
+
+
+ {/await} +
@@ -130,6 +161,9 @@