From 5823f4c849e5cfb03ac276a5cefd87aff5aef329 Mon Sep 17 00:00:00 2001 From: Alec Rippberger Date: Tue, 4 Mar 2025 18:44:56 -0600 Subject: [PATCH] Ensure email is sent if there is only 1 provider --- .../two-factor-auth-email/two-factor-auth-email.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/auth/src/angular/two-factor-auth/child-components/two-factor-auth-email/two-factor-auth-email.component.ts b/libs/auth/src/angular/two-factor-auth/child-components/two-factor-auth-email/two-factor-auth-email.component.ts index 3f5e1ea875c..94f94b3051f 100644 --- a/libs/auth/src/angular/two-factor-auth/child-components/two-factor-auth-email/two-factor-auth-email.component.ts +++ b/libs/auth/src/angular/two-factor-auth/child-components/two-factor-auth-email/two-factor-auth-email.component.ts @@ -91,7 +91,7 @@ export class TwoFactorAuthEmailComponent implements OnInit { } } - if (providers.size > 1 && !emailAlreadySent) { + if (!emailAlreadySent) { await this.sendEmail(false); } }