File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export function ForgotPassword() {
4747 onClick : ( ) => toast . dismiss ( ) ,
4848 } ,
4949 } ) ;
50- navigate ( { to : '/sign-in' } ) ;
50+ navigate ( { to : '/sign-in' , search : { me : email } } ) ;
5151 } ,
5252 } ) ;
5353 } ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const ResetPasswordSchema = z
2727 path : [ 'confirmPassword' ] ,
2828 } ) ;
2929
30- export function RestPassword ( ) {
30+ export function ResetPassword ( ) {
3131 const { token } = useSearch ( { strict : false } ) ;
3232 const navigate = useNavigate ( ) ;
3333
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ function SendEmailVerification() {
2929 email : '' ,
3030 } ,
3131 } ) ;
32+ const email = methods . watch ( 'email' ) ;
3233 const { setFocus, control, handleSubmit } = methods ;
3334
3435 useEffect ( ( ) => {
@@ -45,7 +46,7 @@ function SendEmailVerification() {
4546 onClick : ( ) => toast . dismiss ( ) ,
4647 } ,
4748 } ) ;
48- navigate ( { to : '/sign-in' } ) ;
49+ navigate ( { to : '/sign-in' , search : { me : email } } ) ;
4950 } ,
5051 } ) ;
5152 } , [ navigate , submitResendEmailVerification ] ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { defaultInstanceRoute } from '@/config/constants';
22import { AuthLayout } from '@/features/auth/AuthLayout' ;
33import { ClusterInstanceSignIn } from '@/features/auth/ClusterInstanceSignIn' ;
44import { ForgotPassword } from '@/features/auth/ForgotPassword' ;
5- import { RestPassword as ResetPassword } from '@/features/auth/ResetPassword' ;
5+ import { ResetPassword } from '@/features/auth/ResetPassword' ;
66import { SignIn } from '@/features/auth/SignIn' ;
77import { SignUp } from '@/features/auth/SignUp' ;
88import { VerifyEmail } from '@/features/auth/VerifyEmail' ;
You can’t perform that action at this time.
0 commit comments