From 1460ebd95e3e765bd6be40ec12b426d5124d0f44 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Mon, 6 May 2024 16:47:22 -0700 Subject: [PATCH 01/12] feat(auth): show notification when MFA is enabled/disabled --- src/routes/console/account/updateMfa.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/routes/console/account/updateMfa.svelte b/src/routes/console/account/updateMfa.svelte index e15dc392ca..ff4ccff5ca 100644 --- a/src/routes/console/account/updateMfa.svelte +++ b/src/routes/console/account/updateMfa.svelte @@ -24,6 +24,10 @@ try { await sdk.forConsole.account.updateMFA(!$user.mfa); await invalidate(Dependencies.ACCOUNT); + addNotification({ + message: `Multi-factor authentication has been ${$user.mfa ? 'enabled' : 'disabled'}`, + type: 'success' + }); trackEvent(Submit.AccountUpdateMfa, { mfa: !$user.mfa }); } catch (error) { addNotification({ From fb017686526475343ed13c169f709f5aa5857b74 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Tue, 7 May 2024 16:46:26 -0700 Subject: [PATCH 02/12] feat(auth): rename recovery codes file download to appwrite-backups.txt This helps clarify it's for appwrite. --- src/routes/console/account/mfaRecoveryCodes.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/console/account/mfaRecoveryCodes.svelte b/src/routes/console/account/mfaRecoveryCodes.svelte index a3a22c22ee..63ec5d0fa4 100644 --- a/src/routes/console/account/mfaRecoveryCodes.svelte +++ b/src/routes/console/account/mfaRecoveryCodes.svelte @@ -27,7 +27,7 @@