mirror of
https://github.com/nextcloud/passman.git
synced 2025-11-09 13:44:40 +08:00
Decrypting shared credential works
This commit is contained in:
parent
28aa97bc57
commit
68eac74ddb
1 changed files with 6 additions and 1 deletions
|
|
@ -6,7 +6,6 @@
|
||||||
* @description
|
* @description
|
||||||
* # ShareService
|
* # ShareService
|
||||||
* Service in the passmanApp.
|
* Service in the passmanApp.
|
||||||
* This file is part of passman, licensed under AGPLv3
|
|
||||||
*/
|
*/
|
||||||
angular.module('passmanApp')
|
angular.module('passmanApp')
|
||||||
.service('ShareService', ['$http', 'VaultService', 'EncryptService', 'CredentialService', function ($http, VaultService, EncryptService, CredentialService) {
|
.service('ShareService', ['$http', 'VaultService', 'EncryptService', 'CredentialService', function ($http, VaultService, EncryptService, CredentialService) {
|
||||||
|
|
@ -68,6 +67,12 @@ angular.module('passmanApp')
|
||||||
return response.data;
|
return response.data;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
unshareCredential: function (credential) {
|
||||||
|
var queryUrl = OC.generateUrl('apps/passman/api/v2/sharing/unshare/'+ credential.guid);
|
||||||
|
return $http.delete(queryUrl).then(function (response) {
|
||||||
|
return response.data;
|
||||||
|
})
|
||||||
|
},
|
||||||
getPublicSharedCredential: function (request, crypted_shared_key) {
|
getPublicSharedCredential: function (request, crypted_shared_key) {
|
||||||
var queryUrl = OC.generateUrl('apps/passman/api/v2/sharing/public/view');
|
var queryUrl = OC.generateUrl('apps/passman/api/v2/sharing/public/view');
|
||||||
return $http.get(queryUrl).then(function (response) {
|
return $http.get(queryUrl).then(function (response) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue