Skip to content

Commit

Permalink
🔒 Adds password verify check to cloud sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Aug 8, 2021
1 parent e5227fb commit aa89a5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Configuration/CloudBackupRestore.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit aa89a5b

Please sign in to comment.