diff --git a/login-workflow/src/screens/ForgotPasswordScreen/ForgotPasswordScreen.tsx b/login-workflow/src/screens/ForgotPasswordScreen/ForgotPasswordScreen.tsx index 70aa95f9..e831bf6e 100644 --- a/login-workflow/src/screens/ForgotPasswordScreen/ForgotPasswordScreen.tsx +++ b/login-workflow/src/screens/ForgotPasswordScreen/ForgotPasswordScreen.tsx @@ -52,7 +52,11 @@ export const ForgotPasswordScreen: React.FC = (props) try { setIsLoading(true); await actions.forgotPassword(email); - setShowSuccessScreen(true); + if (props.showSuccessScreen === false) { + navigate(routeConfig.LOGIN as string); + } else { + setShowSuccessScreen(true); + } } catch (_error) { triggerError(_error as Error); } finally {