1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

refactor: make refresh work on fogot password page (#808)

This commit is contained in:
olav 2022-03-23 10:44:43 +01:00 committed by GitHub
parent a16520ddda
commit 71cbf2bfae
2 changed files with 6 additions and 4 deletions

View File

@ -456,8 +456,8 @@ export const routes = [
type: 'protected',
menu: {},
},
/* If you update this route path, make sure you update the path in SWRProvider.tsx */
/* If you update this route path, make sure you update the path in SWRProvider.tsx */
{
path: '/login',
title: 'Log in',
@ -478,15 +478,16 @@ export const routes = [
/* If you update this route path, make sure you update the path in SWRProvider.tsx */
{
path: '/reset-password',
title: 'reset-password',
title: 'Reset password',
hidden: true,
component: ResetPassword,
type: 'unprotected',
menu: {},
},
/* If you update this route path, make sure you update the path in SWRProvider.tsx */
{
path: '/forgotten-password',
title: 'reset-password',
title: 'Forgotten password',
hidden: true,
component: ForgottenPassword,
type: 'unprotected',

View File

@ -32,7 +32,8 @@ const SWRProvider: React.FC<ISWRProviderProps> = ({
if (
path === formatApiPath('login') ||
path === formatApiPath('new-user') ||
path === formatApiPath('reset-password')
path === formatApiPath('reset-password') ||
path === formatApiPath('forgotten-password')
) {
return;
}