1
0
mirror of https://github.com/bitwarden/web synced 2025-12-11 22:03:21 +00:00

print user's fingerprint when confirming

This commit is contained in:
Kyle Spearrin
2018-11-07 23:15:50 -05:00
parent b093ed33b2
commit a7555f56e7
4 changed files with 10 additions and 1 deletions

View File

@@ -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;