mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
Feature/cli fail login on captcha request (#439)
* Fail CLI login if captcha is required by the server. * Linter fixes
This commit is contained in:
@@ -166,6 +166,10 @@ export class LoginCommand {
|
|||||||
} else {
|
} else {
|
||||||
response = await this.authService.logIn(email, password);
|
response = await this.authService.logIn(email, password);
|
||||||
}
|
}
|
||||||
|
if (response.captchaSiteKey) {
|
||||||
|
return Response.badRequest('Your authentication request appears to be coming from a bot\n' +
|
||||||
|
'Please log in using your API key (https://bitwarden.com/help/article/cli/#using-an-api-key)');
|
||||||
|
}
|
||||||
if (response.twoFactor) {
|
if (response.twoFactor) {
|
||||||
let selectedProvider: any = null;
|
let selectedProvider: any = null;
|
||||||
const twoFactorProviders = this.authService.getSupportedTwoFactorProviders(null);
|
const twoFactorProviders = this.authService.getSupportedTwoFactorProviders(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user