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:
@@ -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.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user