mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-10 17:27:40 +08:00
Made shared credential accept work
This commit is contained in:
parent
14c2ec26fb
commit
29fc96eb6d
1 changed files with 2 additions and 3 deletions
|
@ -77,10 +77,9 @@ angular.module('passmanApp')
|
|||
$scope.acceptShareRequest = function(share_request){
|
||||
console.log('Accepted share request', share_request);
|
||||
var crypted_shared_key = share_request.shared_key;
|
||||
var _vault = VaultService.getActiveVault();
|
||||
var private_key = EncryptService.decryptString(VaultService.getActiveVault().private_sharing_key);
|
||||
|
||||
console.log(_vault);return;
|
||||
//private_key = ShareService.rsaPrivateKeyFromPEM(private_key);
|
||||
private_key = ShareService.rsaPrivateKeyFromPEM(private_key);
|
||||
crypted_shared_key = private_key.decrypt(forge.util.decode64(crypted_shared_key));
|
||||
crypted_shared_key = EncryptService.encryptString(crypted_shared_key);
|
||||
|
||||
|
|
Loading…
Reference in a new issue