mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
encrypt key bytes when confirming, not object
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
return;
|
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 () {
|
apiService.organizationUsers.confirm({ orgId: $state.params.orgId, id: user.id }, { key: key }, function () {
|
||||||
user.status = 2;
|
user.status = 2;
|
||||||
toastr.success(user.email + ' has been confirmed.', 'User Confirmed');
|
toastr.success(user.email + ' has been confirmed.', 'User Confirmed');
|
||||||
|
|||||||
Reference in New Issue
Block a user