mirror of https://github.com/keeweb/keeweb.git
Merge pull request #2030 from dissipative/fix-remove-key-file
Fixes an issue with being unable to remove an assigned keyfile once it has been set for a vault. Closes #1924
This commit is contained in:
commit
952b640cab
|
@ -536,7 +536,7 @@ class FileModel extends Model {
|
|||
}
|
||||
|
||||
removeKeyFile() {
|
||||
this.db.credentials.keyFileHash = null;
|
||||
this.db.credentials.setKeyFile(null);
|
||||
const changed = !!this.oldKeyFileHash;
|
||||
if (!changed && this.db.credentials.passwordHash === this.oldPasswordHash) {
|
||||
this.db.meta.keyChanged = this.oldKeyChangeDate;
|
||||
|
|
Loading…
Reference in New Issue