Skip to content

Commit

Permalink
fixup! feat(website,kubernetes): make it possible to disable login an…
Browse files Browse the repository at this point in the history
…d submit flow on website
  • Loading branch information
fengelniederhammer committed Nov 19, 2024
1 parent 155404d commit 31fd89d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/src/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { sequence } from 'astro:middleware';

import { getWebsiteConfig } from './config.ts';
import { authMiddleware } from './middleware/authMiddleware.ts';
import { catchErrorMiddleware } from './middleware/catchErrorMiddleware.ts';
import { organismValidatorMiddleware } from './middleware/organismValidatorMiddleware.ts';
import { getWebsiteConfig } from './config.ts';
import { submissionPagesDisablingMiddleware } from './middleware/submissionPagesDisablingMiddleware.ts';

const middlewares = [catchErrorMiddleware, organismValidatorMiddleware, authMiddleware];
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/organism-selector/[redirectTo].astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const myRoutes = {
submission: routes.submissionPageWithoutGroup,
search: routes.searchPage,
};
const purpose = purposes[redirectTo as keyof typeof purposes];
const purpose = purposes[redirectTo];
// Prevent caching to allow back button after user creates group
Astro.response.headers.append('Cache-Control', 'no-cache, no-store, must-revalidate');
Expand Down

0 comments on commit 31fd89d

Please sign in to comment.