From 63a657cac5f899b0774da0c91b3b933d81a10b2e Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 19 Apr 2017 11:21:58 -0400 Subject: [PATCH] encrypt key bytes when confirming, not object --- src/app/organization/organizationPeopleController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/organization/organizationPeopleController.js b/src/app/organization/organizationPeopleController.js index cff83555e4..7f231e2792 100644 --- a/src/app/organization/organizationPeopleController.js +++ b/src/app/organization/organizationPeopleController.js @@ -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');