From 6a7de6a0d3db88e0318f0f0bcb3eba08ae98535e Mon Sep 17 00:00:00 2001 From: Alec Rippberger Date: Thu, 24 Apr 2025 15:08:31 -0500 Subject: [PATCH] Only set cached provider type if switch is successful --- .../angular/two-factor-auth/two-factor-auth.component.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.ts b/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.ts index 27ddcec4c15..3be5436a20a 100644 --- a/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.ts +++ b/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.ts @@ -342,13 +342,6 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy { }; async selectOtherTwoFactorMethod() { - // Cache current form data before navigating to another method - this.twoFactorAuthComponentCacheService.cacheData({ - token: "", - remember: false, - selectedProviderType: this.selectedProviderType, - }); - const dialogRef = TwoFactorOptionsComponent.open(this.dialogService); const response: TwoFactorOptionsDialogResult | string | undefined = await lastValueFrom( dialogRef.closed,