mirror of https://github.com/keeweb/keeweb.git
Merge pull request #2146 from Aetherinox/master
fix: addresses not being able to unset a keyfile once added to a vault
This commit is contained in:
commit
d0d163bf5e
|
@ -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