1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-23 19:53:55 +00:00

Update client code to use new interfaces

This commit is contained in:
Thomas Rittson
2021-12-20 15:24:12 +10:00
parent 970b658c1f
commit 35d894223d
3 changed files with 4 additions and 4 deletions

View File

@@ -216,7 +216,7 @@ export class LoginCommand {
}
}
}
if (response.twoFactor) {
if (response.requiresTwoFactor) {
let selectedProvider: any = null;
const twoFactorProviders = this.twoFactorService.getSupportedProviders(null);
if (twoFactorProviders.length === 0) {
@@ -291,7 +291,7 @@ export class LoginCommand {
});
}
if (response.twoFactor) {
if (response.requiresTwoFactor) {
return Response.error("Login failed.");
}