mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-07-19 22:20:19 -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:
@@ -4,6 +4,11 @@ import type { HouseholdCreate, HouseholdInDB } from "~/lib/api/types/household";
|
||||
const householdSelfRef = ref<HouseholdInDB | null>(null);
|
||||
const loading = ref(false);
|
||||
|
||||
export function resetHouseholdSelf() {
|
||||
householdSelfRef.value = null;
|
||||
loading.value = false;
|
||||
}
|
||||
|
||||
export const useHouseholdSelf = function () {
|
||||
const api = useUserApi();
|
||||
const auth = useMealieAuth();
|
||||
|
||||
Reference in New Issue
Block a user