anmeldunf +page.server.js delete coockie
This commit is contained in:
@@ -4,7 +4,7 @@ ENV NODE_ENV=production
|
|||||||
ENV ORIGIN=https://tatort.innovation-hub-niedersachsen.de
|
ENV ORIGIN=https://tatort.innovation-hub-niedersachsen.de
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN pnpm ci
|
RUN pnpm install
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export const actions = {
|
|||||||
throw redirect(303, '/');
|
throw redirect(303, '/');
|
||||||
},
|
},
|
||||||
logout: async (event) => {
|
logout: async (event) => {
|
||||||
event.cookies.delete(COOKIE_NAME);
|
event.cookies.delete(COOKIE_NAME, {path: '/'});
|
||||||
event.locals.user = null;
|
event.locals.user = null;
|
||||||
return { success: true };
|
return { success: true };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user