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:
parent
a16520ddda
commit
71cbf2bfae
@ -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',
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user