Password encryption
This commit is contained in:
@@ -177,6 +177,7 @@ export const useAccountStore = defineStore("accountStore", {
|
||||
this.loggedIn = false
|
||||
this.privilegeBuy = false
|
||||
this.adminPanelVisible = false
|
||||
this.userAccountToken = ""
|
||||
|
||||
feedbackStore.addSnackbar(BannerStateEnum.ACCOUNTLOGOUTSUCCESSFUL)
|
||||
},
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user