diff --git a/src/routes/(console)/project-[project]/auth/templates/+page.svelte b/src/routes/(console)/project-[project]/auth/templates/+page.svelte index 59ccc5fa70..097e75afc0 100644 --- a/src/routes/(console)/project-[project]/auth/templates/+page.svelte +++ b/src/routes/(console)/project-[project]/auth/templates/+page.svelte @@ -46,6 +46,8 @@ import EmailInviteTemplate from './emailInviteTemplate.svelte'; import Email2FaTemplate from './email2FATemplate.svelte'; import EmailSessionAlertTemplate from './emailSessionAlertTemplate.svelte'; + import EmailMfaEnabledTemplate from './emailMfaEnabledTemplate.svelte'; + import EmailMfaDisabledTemplate from './emailMfaDisabledTemplate.svelte'; // import SmsVerificationTemplate from './smsVerificationTemplate.svelte'; // import SmsLoginTemplate from './smsLoginTemplate.svelte'; @@ -72,6 +74,8 @@ $: emailResetPassword = emailOpen === 'recovery'; $: emailInviteUser = emailOpen === 'invitation'; $: email2FAVerificationOpen = emailOpen === 'mfaChallenge'; + $: emailMfaEnabledOpen = emailOpen === 'mfaEnabled'; + $: emailMfaDisabledOpen = emailOpen === 'mfaDisabled'; $: emailSessionAlertOpen = emailOpen === 'sessionAlert'; // let smsOpen = 'verification'; @@ -203,6 +207,27 @@

Send a two-factor authentication email to a user.

+ { + e.preventDefault(); + openEmail('mfaEnabled'); + }}> + MFA enabled +

Send an email to a user when MFA is enabled.

+ +
+ { + e.preventDefault(); + openEmail('mfaDisabled'); + }}> + MFA disabled +

Send an email to a user when MFA is disabled.

+ +
+ { diff --git a/src/routes/(console)/project-[project]/auth/templates/emailMfaDisabledTemplate.svelte b/src/routes/(console)/project-[project]/auth/templates/emailMfaDisabledTemplate.svelte new file mode 100644 index 0000000000..827bb92d6a --- /dev/null +++ b/src/routes/(console)/project-[project]/auth/templates/emailMfaDisabledTemplate.svelte @@ -0,0 +1,42 @@ + + +
+ + + {'{{user}}'} + {'{{project}}'} + {'{{redirect}}'} + +
\ No newline at end of file diff --git a/src/routes/(console)/project-[project]/auth/templates/emailMfaEnabledTemplate.svelte b/src/routes/(console)/project-[project]/auth/templates/emailMfaEnabledTemplate.svelte new file mode 100644 index 0000000000..5e7b4241e8 --- /dev/null +++ b/src/routes/(console)/project-[project]/auth/templates/emailMfaEnabledTemplate.svelte @@ -0,0 +1,42 @@ + + +
+ + + {'{{user}}'} + {'{{project}}'} + {'{{redirect}}'} + +
\ No newline at end of file