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
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN pnpm ci
|
||||
RUN pnpm install
|
||||
COPY . ./
|
||||
RUN pnpm run build
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export const actions = {
|
||||
throw redirect(303, '/');
|
||||
},
|
||||
logout: async (event) => {
|
||||
event.cookies.delete(COOKIE_NAME);
|
||||
event.cookies.delete(COOKIE_NAME, {path: '/'});
|
||||
event.locals.user = null;
|
||||
return { success: true };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user