✨ Add login redirection
* ✨ Add login redirection * 🚑 Fix cross site scripting using server side regex validation * ✅ Add unit test
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user