mirror of
https://github.com/nextcloud/passman.git
synced 2025-02-26 00:14:44 +08:00
Rename var
This commit is contained in:
parent
6672cfa2a8
commit
cb222e36a3
1 changed files with 2 additions and 2 deletions
|
@ -161,7 +161,7 @@ angular.module('passmanApp')
|
|||
}
|
||||
});
|
||||
},
|
||||
reencryptCredential: function(credential_id, old_password, new_password){
|
||||
reencryptCredential: function(credential_guid, old_password, new_password){
|
||||
|
||||
var service = this;
|
||||
|
||||
|
@ -172,7 +172,7 @@ angular.module('passmanApp')
|
|||
};
|
||||
|
||||
var promise_credential_update = function(){
|
||||
service.getCredential(credential_id).then((function (credential) {
|
||||
service.getCredential(credential_guid).then((function (credential) {
|
||||
this.parent.plain_credential = service.decryptCredential(credential, this.parent.old_password);
|
||||
var tmp = angular.copy(this.parent.plain_credential);
|
||||
this.parent.new_credential_cryptogram = service.encryptCredential(tmp, this.parent.new_password);
|
||||
|
|
Loading…
Reference in a new issue