mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-30 17:53:31 -04: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:
		| @@ -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> | ||||
|      | ||||
|   | ||||
		Reference in New Issue
	
	Block a user