mirror of https://github.com/keeweb/keeweb.git
Fix remove key file
This commit is contained in:
parent
3e7deab35b
commit
4a6dac9029
|
@ -536,7 +536,7 @@ class FileModel extends Model {
|
||||||
}
|
}
|
||||||
|
|
||||||
removeKeyFile() {
|
removeKeyFile() {
|
||||||
this.db.credentials.keyFileHash = null;
|
this.db.credentials.setKeyFile(null);
|
||||||
const changed = !!this.oldKeyFileHash;
|
const changed = !!this.oldKeyFileHash;
|
||||||
if (!changed && this.db.credentials.passwordHash === this.oldPasswordHash) {
|
if (!changed && this.db.credentials.passwordHash === this.oldPasswordHash) {
|
||||||
this.db.meta.keyChanged = this.oldKeyChangeDate;
|
this.db.meta.keyChanged = this.oldKeyChangeDate;
|
||||||
|
|
Loading…
Reference in New Issue