✨ Add login redirection

* ✨ Add login redirection

* 🚑 Fix cross site scripting using server side regex validation

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

No files matched your search

+4 -5
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();