Skip to content

Commit

Permalink
Fix broken getSecureRedirect
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurswag committed Dec 3, 2024
1 parent adeca33 commit a8b25bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/routes/(authentication)/login/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ export const actions: Actions = {
}

const next = url.searchParams.get('next') || '/';
const redirectURL = getSecureRedirect(next) + (CI_TEST ? '' : '?refresh=1');
const secureNext = getSecureRedirect(next);
const refreshQueryParam = (CI_TEST ? '' : '?refresh=1');
const redirectURL = secureNext ? `${secureNext}${refreshQueryParam}` : `/${refreshQueryParam}`;
redirect(302, redirectURL);
},
mfaAuthenticate: async (event) => {
Expand Down

0 comments on commit a8b25bd

Please sign in to comment.