Browse Source

print user's fingerprint when confirming

pull/296/head
Kyle Spearrin 7 years ago
parent
commit
a7555f56e7
  1. 2
      jslib
  2. 5
      package-lock.json
  3. 1
      package.json
  4. 3
      src/app/organizations/manage/people.component.ts

2
jslib

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit 7dcb9b5f8bfd7c65f759b0cc34dfc6abd33fdcd6
Subproject commit 1e6b3b4aae84495d757d02583d0d69a8d18a029b

5
package-lock.json generated

@ -1271,6 +1271,11 @@ @@ -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",

1
package.json

@ -70,6 +70,7 @@ @@ -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",

3
src/app/organizations/manage/people.component.ts

@ -254,6 +254,9 @@ export class PeopleComponent implements OnInit { @@ -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;

Loading…
Cancel
Save