mirror of
https://github.com/bitwarden/web
synced 2025-12-13 23:03:18 +00:00
print user's fingerprint when confirming
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 7dcb9b5f8b...1e6b3b4aae
5
package-lock.json
generated
5
package-lock.json
generated
@@ -1271,6 +1271,11 @@
|
|||||||
"integrity": "sha1-5tXqjF2tABMEpwsiY4RH9pyy+Ak=",
|
"integrity": "sha1-5tXqjF2tABMEpwsiY4RH9pyy+Ak=",
|
||||||
"dev": true
|
"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": {
|
"big.js": {
|
||||||
"version": "3.2.0",
|
"version": "3.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz",
|
||||||
|
|||||||
@@ -70,6 +70,7 @@
|
|||||||
"@aspnet/signalr-protocol-msgpack": "1.0.4",
|
"@aspnet/signalr-protocol-msgpack": "1.0.4",
|
||||||
"angular2-toaster": "6.1.0",
|
"angular2-toaster": "6.1.0",
|
||||||
"angulartics2": "6.3.0",
|
"angulartics2": "6.3.0",
|
||||||
|
"big-integer": "1.6.36",
|
||||||
"bootstrap": "4.1.3",
|
"bootstrap": "4.1.3",
|
||||||
"braintree-web-drop-in": "1.13.0",
|
"braintree-web-drop-in": "1.13.0",
|
||||||
"core-js": "2.5.7",
|
"core-js": "2.5.7",
|
||||||
|
|||||||
@@ -254,6 +254,9 @@ export class PeopleComponent implements OnInit {
|
|||||||
const orgKey = await this.cryptoService.getOrgKey(this.organizationId);
|
const orgKey = await this.cryptoService.getOrgKey(this.organizationId);
|
||||||
const publicKeyResponse = await this.apiService.getUserPublicKey(user.userId);
|
const publicKeyResponse = await this.apiService.getUserPublicKey(user.userId);
|
||||||
const publicKey = Utils.fromB64ToArray(publicKeyResponse.publicKey);
|
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 key = await this.cryptoService.rsaEncrypt(orgKey.key, publicKey.buffer);
|
||||||
const request = new OrganizationUserConfirmRequest();
|
const request = new OrganizationUserConfirmRequest();
|
||||||
request.key = key.encryptedString;
|
request.key = key.encryptedString;
|
||||||
|
|||||||
Reference in New Issue
Block a user