Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/app
diff options
context:
space:
mode:
authorbinsky <timo@binsky.org>2021-09-07 22:08:23 +0300
committerbinsky <timo@binsky.org>2021-09-07 22:08:23 +0300
commit44ceba586c606c9093e36e3ee002ff8e19823ec3 (patch)
tree7ce06640591f84576679344f6e4b36ffdc0c5997 /js/app
parent27148531955f7e8973e2669cbbdabb6b9a082b25 (diff)
fix credential resharing
Signed-off-by: binsky <timo@binsky.org>
Diffstat (limited to 'js/app')
-rw-r--r--js/app/services/credentialservice.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/app/services/credentialservice.js b/js/app/services/credentialservice.js
index e8bc2a41..9e310255 100644
--- a/js/app/services/credentialservice.js
+++ b/js/app/services/credentialservice.js
@@ -216,7 +216,7 @@
this.parent.plain_credential = service.decryptCredential(credential, this.parent.old_password);
var tmp = angular.copy(this.parent.plain_credential);
- if (tmp.hasOwnProperty('shared_key') && tmp.shared_key !== null && !skipSharingKey) {
+ if (tmp.hasOwnProperty('shared_key') && tmp.shared_key !== null && tmp.shared_key !== '' && !skipSharingKey) {
var shared_key = EncryptService.decryptString(angular.copy(tmp.shared_key)).trim();
tmp.shared_key = EncryptService.encryptString(angular.copy(shared_key), this.parent.new_password);
tmp.set_share_key = true;