From 1460ebd95e3e765bd6be40ec12b426d5124d0f44 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Mon, 6 May 2024 16:47:22 -0700 Subject: [PATCH] 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 e15dc392c..ff4ccff5c 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({