mirror of https://github.com/Lissy93/dashy.git
🔒 Adds password verify check to cloud sync
This commit is contained in:
parent
e5227fb2d7
commit
aa89a5b27e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue