Add login redirection

*  Add login redirection

* 🚑 Fix cross site scripting using server side regex validation

*  Add unit test
This commit is contained in:
Manuel
2023-09-24 16:04:07 +02:00
committed by GitHub
parent 7d7fe6016b
commit 690c627f81
12 changed files with 275 additions and 65 deletions

View File

@@ -158,12 +158,11 @@ describe('[slug] page', () => {
// assert
expect(response).toEqual({
notFound: true,
props: {
primaryColor: 'red',
secondaryColor: 'blue',
primaryShade: 'green',
redirect: {
destination: "/auth/login?redirectAfterLogin=/board/my-authentication-board",
permanent: false
},
props: {},
});
expect(serverAuthModule.getServerAuthSession).toHaveBeenCalledOnce();
expect(configExistsModule.configExists).toHaveBeenCalledOnce();