mirror of
https://github.com/nextcloud/passman.git
synced 2026-01-09 09:05:21 +08:00
fix credential resharing
Signed-off-by: binsky <timo@binsky.org>
This commit is contained in:
parent
2714853195
commit
44ceba586c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue