changed command from login --apiKey to login --apikey
This commit is contained in:
parent
421de80daf
commit
2c29df7a86
|
@ -30,7 +30,7 @@ export class LoginCommand extends BaseLoginCommand {
|
||||||
};
|
};
|
||||||
this.success = async () => {
|
this.success = async () => {
|
||||||
await syncService.fullSync(true);
|
await syncService.fullSync(true);
|
||||||
if ((this.cmd.sso != null || this.cmd.apiKey != null) && this.canInteract) {
|
if ((this.cmd.sso != null || this.cmd.apikey != null) && this.canInteract) {
|
||||||
const res = new MessageResponse('You are logged in!', '\n' +
|
const res = new MessageResponse('You are logged in!', '\n' +
|
||||||
'To unlock your vault, use the `unlock` command. ex:\n' +
|
'To unlock your vault, use the `unlock` command. ex:\n' +
|
||||||
'$ bw unlock');
|
'$ bw unlock');
|
||||||
|
|
|
@ -108,7 +108,7 @@ export class Program extends BaseProgram {
|
||||||
.option('--method <method>', 'Two-step login method.')
|
.option('--method <method>', 'Two-step login method.')
|
||||||
.option('--code <code>', 'Two-step login code.')
|
.option('--code <code>', 'Two-step login code.')
|
||||||
.option('--sso', 'Log in with Single-Sign On.')
|
.option('--sso', 'Log in with Single-Sign On.')
|
||||||
.option('--apiKey', 'Log in with an Api Key.')
|
.option('--apikey', 'Log in with an Api Key.')
|
||||||
.option('--check', 'Check login status.', async () => {
|
.option('--check', 'Check login status.', async () => {
|
||||||
const authed = await this.main.userService.isAuthenticated();
|
const authed = await this.main.userService.isAuthenticated();
|
||||||
if (authed) {
|
if (authed) {
|
||||||
|
|
Loading…
Reference in New Issue