mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
null check on u2f challenge
This commit is contained in:
parent
cc8dd89b2b
commit
b5353551a8
@ -4,7 +4,7 @@ export class TwoFactorU2fResponse {
|
|||||||
|
|
||||||
constructor(response: any) {
|
constructor(response: any) {
|
||||||
this.enabled = response.Enabled;
|
this.enabled = response.Enabled;
|
||||||
this.challenge = new ChallengeResponse(response.Challenge);
|
this.challenge = response.Challenge == null ? null : new ChallengeResponse(response.Challenge);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user