don't re-throw exception on 2fa failure

This commit is contained in:
Kyle Spearrin 2018-08-25 08:47:38 -04:00
parent 7d0583f47b
commit 6f43b73237
1 changed files with 1 additions and 3 deletions

View File

@ -175,11 +175,9 @@ export class TwoFactorComponent implements OnInit, OnDestroy {
} else { } else {
this.router.navigate([this.successRoute]); this.router.navigate([this.successRoute]);
} }
} catch (e) { } catch {
if (this.selectedProviderType === TwoFactorProviderType.U2f && this.u2f != null) { if (this.selectedProviderType === TwoFactorProviderType.U2f && this.u2f != null) {
this.u2f.start(); this.u2f.start();
} else {
throw e;
} }
} }
} }