mirror of
https://github.com/nextcloud/passman.git
synced 2025-01-09 17:00:54 +08:00
Merge branch 'sharing_no_groups' of github.com:nextcloud/passman into sharing_no_groups
This commit is contained in:
commit
5024c1f313
1 changed files with 8 additions and 1 deletions
|
@ -74,7 +74,14 @@ angular.module('passmanApp')
|
|||
|
||||
$scope.acceptShareRequest = function(share_request){
|
||||
console.log('Accepted share request', share_request);
|
||||
var crypted_shared_key = '';
|
||||
var crypted_shared_key = share_request.shared_key;
|
||||
var private_key = VaultService.getActiveVault();
|
||||
|
||||
console.log(private_key);return;
|
||||
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);
|
||||
|
||||
ShareService.saveSharingRequest(share_request, crypted_shared_key).then(function (result) {
|
||||
console.log(result)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue