Password encryption

This commit is contained in:
2024-11-20 10:43:48 +01:00
parent e02f2d252e
commit d4fbda26d7
12 changed files with 289 additions and 43 deletions

View File

@@ -177,6 +177,7 @@ export const useAccountStore = defineStore("accountStore", {
this.loggedIn = false
this.privilegeBuy = false
this.adminPanelVisible = false
this.userAccountToken = ""
feedbackStore.addSnackbar(BannerStateEnum.ACCOUNTLOGOUTSUCCESSFUL)
},

View File

@@ -73,9 +73,14 @@ export const usePreferencesStore = defineStore('preferencesStore', {
*/
async resetDb() {
const feedbackStore = useFeedbackStore()
const accountStore = useAccountStore()
this.serverState = ServerStateEnum.PENDING
this.fetchInProgress = true
// Logout user
accountStore.logout()
await resetDatabase()
.then(result => {
if (result.status == 200) {