diff --git a/src/routes/(console)/account/mfa.svelte b/src/routes/(console)/account/mfa.svelte index 38078c2abb..61d7e73af4 100644 --- a/src/routes/(console)/account/mfa.svelte +++ b/src/routes/(console)/account/mfa.svelte @@ -7,6 +7,7 @@ import { sdk } from '$lib/stores/sdk'; import { AuthenticatorType, type Models } from '@appwrite.io/console'; import QrFrame from '$lib/images/qr2.svg'; + import { addNotification } from '$lib/stores/notifications'; export let showSetup = false; @@ -28,6 +29,10 @@ await sdk.forConsole.account.updateMfaAuthenticator(AuthenticatorType.Totp, code); await Promise.all([invalidate(Dependencies.ACCOUNT), invalidate(Dependencies.FACTORS)]); showSetup = false; + addNotification({ + type: 'success', + message: 'Authenticator app connected successfully' + }); trackEvent(Submit.AccountAuthenticatorUpdate); } catch (e) { error = e.message; diff --git a/src/routes/(console)/account/updateMfa.svelte b/src/routes/(console)/account/updateMfa.svelte index 077784d09d..220fea907d 100644 --- a/src/routes/(console)/account/updateMfa.svelte +++ b/src/routes/(console)/account/updateMfa.svelte @@ -109,13 +109,18 @@
-
+
-
- Authenticator app - +
+ Authenticator app + {#if $factors.totp} + connected + {/if} +
+ Use an authentication app to generate two-factor authentication codes.
@@ -141,7 +146,7 @@
-
+
@@ -185,7 +190,7 @@
-
+