mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-06 19:45:54 +08:00
Fix for non-shared credentials history
This commit is contained in:
parent
cc6cc0251d
commit
c08243fbdf
2 changed files with 10 additions and 1 deletions
|
@ -211,6 +211,13 @@ angular.module('passmanApp')
|
|||
};
|
||||
|
||||
$scope.saveCredential = function () {
|
||||
|
||||
|
||||
if ($scope.new_custom_field.label && $scope.new_custom_field.value) {
|
||||
$scope.storedCredential.custom_fields.push(angular.copy($scope.new_custom_field));
|
||||
}
|
||||
|
||||
|
||||
//@TODO validation
|
||||
//@TODO When credential is expired and has renew interval set, calc new expire time.
|
||||
delete $scope.storedCredential.password_repeat;
|
||||
|
|
|
@ -55,7 +55,9 @@ angular.module('passmanApp')
|
|||
$scope.selectedRevision = angular.copy(revision);
|
||||
|
||||
if(!$scope.storedCredential.hasOwnProperty('acl') && $scope.storedCredential.hasOwnProperty('shared_key')){
|
||||
key = EncryptService.decryptString(angular.copy($scope.storedCredential.shared_key));
|
||||
if($scope.storedCredential.shared_key) {
|
||||
key = EncryptService.decryptString(angular.copy($scope.storedCredential.shared_key));
|
||||
}
|
||||
}
|
||||
if($scope.storedCredential.hasOwnProperty('acl')){
|
||||
key = EncryptService.decryptString(angular.copy($scope.storedCredential.acl.shared_key));
|
||||
|
|
Loading…
Add table
Reference in a new issue