1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

encrypt key bytes when confirming, not object

This commit is contained in:
Kyle Spearrin 2017-04-19 11:21:58 -04:00
parent c3eb6bb972
commit 63a657cac5

View File

@ -39,7 +39,7 @@
return;
}
var key = cryptoService.rsaEncrypt(orgKey, userKey.PublicKey);
var key = cryptoService.rsaEncrypt(orgKey.key, userKey.PublicKey);
apiService.organizationUsers.confirm({ orgId: $state.params.orgId, id: user.id }, { key: key }, function () {
user.status = 2;
toastr.success(user.email + ' has been confirmed.', 'User Confirmed');