From 6f43b73237fc64394441d5821bd88090b26cbe5b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 25 Aug 2018 08:47:38 -0400 Subject: [PATCH] don't re-throw exception on 2fa failure --- src/angular/components/two-factor.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/angular/components/two-factor.component.ts b/src/angular/components/two-factor.component.ts index b638796908..705340681e 100644 --- a/src/angular/components/two-factor.component.ts +++ b/src/angular/components/two-factor.component.ts @@ -175,11 +175,9 @@ export class TwoFactorComponent implements OnInit, OnDestroy { } else { this.router.navigate([this.successRoute]); } - } catch (e) { + } catch { if (this.selectedProviderType === TwoFactorProviderType.U2f && this.u2f != null) { this.u2f.start(); - } else { - throw e; } } }