mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-07-15 20:20:14 -04:00
fix: clear cached recipe actions on logout to prevent cross-user leak (#7815)
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com> Co-authored-by: Michael Genson <genson.michael@gmail.com>
This commit is contained in:
@@ -5,6 +5,12 @@ const userRatings = ref<UserRatingSummary[]>([]);
|
||||
const loading = ref(false);
|
||||
const ready = ref(false);
|
||||
|
||||
export function resetUserSelfRatings() {
|
||||
userRatings.value = [];
|
||||
loading.value = false;
|
||||
ready.value = false;
|
||||
}
|
||||
|
||||
export const useUserSelfRatings = function () {
|
||||
const auth = useMealieAuth();
|
||||
|
||||
|
||||
@@ -10,6 +10,16 @@ const password1 = ref("");
|
||||
const password2 = ref("");
|
||||
const advancedOptions = ref(false);
|
||||
|
||||
export function resetUserRegistrationForm() {
|
||||
domAccountForm.value = null;
|
||||
username.value = "";
|
||||
fullName.value = "";
|
||||
email.value = "";
|
||||
password1.value = "";
|
||||
password2.value = "";
|
||||
advancedOptions.value = false;
|
||||
}
|
||||
|
||||
export const useUserRegistrationForm = () => {
|
||||
const i18n = useI18n();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user