1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-19 09:43:28 +00:00

Run Prettier

This commit is contained in:
Thomas Rittson
2021-12-20 14:20:58 +10:00
parent 54b4154c02
commit 1f11b7cc3b
11 changed files with 65 additions and 58 deletions

View File

@@ -157,37 +157,29 @@ export class LoginCommand {
let response: AuthResult = null;
if (clientId != null && clientSecret != null) {
response = await this.authService.logInApiKey(
clientId,
clientSecret,
{
provider: twoFactorMethod,
token: twoFactorToken,
remember: false
}
);
response = await this.authService.logInApiKey(clientId, clientSecret, {
provider: twoFactorMethod,
token: twoFactorToken,
remember: false,
});
} else if (ssoCode != null && ssoCodeVerifier != null) {
response = await this.authService.logInSso(
ssoCode,
ssoCodeVerifier,
this.ssoRedirectUri,
orgIdentifier,
{
provider: twoFactorMethod,
token: twoFactorToken,
remember: false
}
);
} else {
response = await this.authService.logIn(
email,
password,
{
provider: twoFactorMethod,
token: twoFactorToken,
remember: false,
}
);
} else {
response = await this.authService.logIn(email, password, {
provider: twoFactorMethod,
token: twoFactorToken,
remember: false,
});
}
if (response.captchaSiteKey) {
const badCaptcha = Response.badRequest(