diff --git a/jslib b/jslib index 7dcb9b5f8b..1e6b3b4aae 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 7dcb9b5f8bfd7c65f759b0cc34dfc6abd33fdcd6 +Subproject commit 1e6b3b4aae84495d757d02583d0d69a8d18a029b diff --git a/package-lock.json b/package-lock.json index c2d4a3dca4..34321292e5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1271,6 +1271,11 @@ "integrity": "sha1-5tXqjF2tABMEpwsiY4RH9pyy+Ak=", "dev": true }, + "big-integer": { + "version": "1.6.36", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.36.tgz", + "integrity": "sha512-t70bfa7HYEA1D9idDbmuv7YbsbVkQ+Hp+8KFSul4aE5e/i1bjCNIRYJZlA8Q8p0r9T8cF/RVvwUgRA//FydEyg==" + }, "big.js": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz", diff --git a/package.json b/package.json index f35a915572..85bf16262d 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,7 @@ "@aspnet/signalr-protocol-msgpack": "1.0.4", "angular2-toaster": "6.1.0", "angulartics2": "6.3.0", + "big-integer": "1.6.36", "bootstrap": "4.1.3", "braintree-web-drop-in": "1.13.0", "core-js": "2.5.7", diff --git a/src/app/organizations/manage/people.component.ts b/src/app/organizations/manage/people.component.ts index 53cd201e64..75268f4a39 100644 --- a/src/app/organizations/manage/people.component.ts +++ b/src/app/organizations/manage/people.component.ts @@ -254,6 +254,9 @@ export class PeopleComponent implements OnInit { const orgKey = await this.cryptoService.getOrgKey(this.organizationId); const publicKeyResponse = await this.apiService.getUserPublicKey(user.userId); const publicKey = Utils.fromB64ToArray(publicKeyResponse.publicKey); + // tslint:disable-next-line + console.log('User\'s fingerprint: ' + + (await this.cryptoService.getFingerprint(user.userId, publicKey.buffer)).join('-')); const key = await this.cryptoService.rsaEncrypt(orgKey.key, publicKey.buffer); const request = new OrganizationUserConfirmRequest(); request.key = key.encryptedString;