From 341421380f340181a355680b65ba12cabacc5480 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 7 Oct 2019 10:12:39 -0400 Subject: [PATCH] CLI user agent --- jslib | 2 +- src/bw.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index 83d6b2449c..e16cb9b801 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 83d6b2449cba8390912b692d882f400723c01dc1 +Subproject commit e16cb9b801bec1cf1744d8b48f39421ad37e1644 diff --git a/src/bw.ts b/src/bw.ts index 53df6981dc..c4dc472ff8 100644 --- a/src/bw.ts +++ b/src/bw.ts @@ -95,7 +95,9 @@ export class Main { this.tokenService = new TokenService(this.storageService); this.messagingService = new NoopMessagingService(); this.apiService = new NodeApiService(this.tokenService, this.platformUtilsService, - async (expired: boolean) => await this.logout()); + async (expired: boolean) => await this.logout(), + 'Bitwarden_CLI/' + this.platformUtilsService.getApplicationVersion() + + ' (' + this.platformUtilsService.getDeviceString().toUpperCase() + ')'); this.environmentService = new EnvironmentService(this.apiService, this.storageService, null); this.userService = new UserService(this.tokenService, this.storageService); this.containerService = new ContainerService(this.cryptoService);