mirror of https://github.com/keeweb/keeweb.git
fix: addresses not being able to unset a keyfile once added to a vault
Refs: #2073 #1924 #2038 #1941
This commit is contained in:
parent
fcdce278a7
commit
738d9c6a00
|
@ -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