don't re-throw exception on 2fa failure
This commit is contained in:
parent
7d0583f47b
commit
6f43b73237
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue