🔒 Adds password verify check to cloud sync
This commit is contained in:
@@ -96,7 +96,9 @@ export default {
|
|||||||
},
|
},
|
||||||
checkPass() {
|
checkPass() {
|
||||||
const savedHash = localStorage[localStorageKeys.BACKUP_HASH] || undefined;
|
const savedHash = localStorage[localStorageKeys.BACKUP_HASH] || undefined;
|
||||||
if (!savedHash) {
|
if (!this.backupPassword) {
|
||||||
|
this.showErrorMsg(this.$t('cloud-sync.backup-missing-password'));
|
||||||
|
} else if (!savedHash) {
|
||||||
this.makeBackup();
|
this.makeBackup();
|
||||||
} else if (savedHash === this.makeHash(this.backupPassword)) {
|
} else if (savedHash === this.makeHash(this.backupPassword)) {
|
||||||
this.makeUpdate();
|
this.makeUpdate();
|
||||||
|
|||||||
Reference in New Issue
Block a user