mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-27 05:46:32 +08:00
Merge branch 'sharing_no_groups' of github.com:nextcloud/passman into sharing_no_groups
This commit is contained in:
commit
993fac55db
3 changed files with 4 additions and 5 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);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class SharingACLMapper extends Mapper {
|
|||
const TABLE_NAME = '`*PREFIX*passman_sharing_acl`';
|
||||
|
||||
public function __construct(IDBConnection $db, Utils $utils) {
|
||||
parent::__construct($db, 'passman_vaults');
|
||||
parent::__construct($db, 'passman_sharing_acl');
|
||||
$this->utils = $utils;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ class ShareService {
|
|||
$acl->setExpire(0);
|
||||
$acl->setPermissions($permissions);
|
||||
$acl->setVaultId($request->getTargetVaultId());
|
||||
$acl->getVaultGuid($request->getTargetVaultGuid());
|
||||
$acl->setVaultGuid($request->getTargetVaultGuid());
|
||||
$acl->setSharedKey($final_shared_key);
|
||||
|
||||
$this->sharingACL->createACLEntry($acl);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue