diff --git a/src/routes/console/account/updateMfa.svelte b/src/routes/console/account/updateMfa.svelte index 8949db486..447a2340b 100644 --- a/src/routes/console/account/updateMfa.svelte +++ b/src/routes/console/account/updateMfa.svelte @@ -95,99 +95,102 @@ href="https://appwrite.io/docs/products/auth/mfa">Learn more.

-
-
- Methods -
-
-
-
-
-
- Authenticator app - Use an authentication app to generate two-factor authentication - codes. -
+ {#if $user.mfa} +
+
+ Methods
-
- {#if $factors.totp} - - {:else} - - {/if} -
-
- - {#if $factors.email}
-
- Email verification - One-time codes will be sent to: {$user.email} + Authenticator app + Use an authentication app to generate two-factor authentication + codes.
+
+ {#if $factors.totp} + + {:else} + + {/if} +
- {/if} - {#if $factors.phone} + {#if $factors.email} +
+
+
+
+
+ Email verification + One-time codes will be sent to: {$user.email} +
+
+
+ {/if} + + {#if $factors.phone} +
+
+
+
+
+ SMS verification + One-time codes will be sent to: {$user.phone} +
+
+
+ {/if} +
+ +
+
+ Recovery +
-
- SMS verification - One-time codes will be sent to: {$user.phone} + Recovery codes + Use in case you can't receive two-factor authentication codes.
-
- {/if} -
- -
-
- Recovery -
-
-
-
-
-
- Recovery codes - Use in case you can't receive two-factor authentication codes. +
+ {#if $factors.recoveryCode} + + {:else} + + {/if}
-
- {#if $factors.recoveryCode} - - {:else} - - {/if} -
-
+ {/if}