From aa89a5b27e6faf535686fb6013bac865afb41eaf Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 8 Aug 2021 18:38:35 +0100 Subject: [PATCH] :lock: Adds password verify check to cloud sync --- src/components/Configuration/CloudBackupRestore.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Configuration/CloudBackupRestore.vue b/src/components/Configuration/CloudBackupRestore.vue index 36b00f8d..9703d534 100644 --- a/src/components/Configuration/CloudBackupRestore.vue +++ b/src/components/Configuration/CloudBackupRestore.vue @@ -96,7 +96,9 @@ export default { }, checkPass() { 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(); } else if (savedHash === this.makeHash(this.backupPassword)) { this.makeUpdate();