1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-30 18:49:41 +02:00

Refactor/user database models (#775)

* fix build error

* drop frontend.old

* improve auto_init decorator

* purge depreciated site settings

* formatting

* update init function

* fix(backend): 🐛 Fix password reset bug

Co-authored-by: Hayden <hay-kot@pm.me>
This commit is contained in:
Hayden 2021-11-04 14:01:37 -08:00 committed by GitHub
parent 40462a95f1
commit ec3b53cdc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
172 changed files with 430 additions and 12255 deletions

View file

@ -73,7 +73,7 @@
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<BaseButton update @click="updateUser" />
<BaseButton update @click="updatePassword" />
</v-card-actions>
</v-card>
</div>
@ -164,28 +164,6 @@ export default defineComponent({
title: this.$t("settings.profile") as string,
};
},
methods: {
async changePassword() {
// @ts-ignore
this.paswordLoading = true;
const data = {
currentPassword: this.password.current,
newPassword: this.password.newOne,
};
// @ts-ignore
if (this.$refs.passChange.validate()) {
// @ts-ignore
if (await api.users.changePassword(this.user.id, data)) {
this.$emit("refresh");
}
}
// @ts-ignore
this.paswordLoading = false;
},
},
});
</script>