change password

This commit is contained in:
hamid zarghami
2025-02-03 15:38:04 +03:30
parent 1db7653cb2
commit f4263283dc
4 changed files with 8 additions and 10 deletions
+3 -2
View File
@@ -17,13 +17,14 @@ import { ErrorType } from '../../../helpers/types'
const LoginStep3: FC = () => {
const { t } = useTranslation('global')
const { setStepLogin, email } = useAuthStore()
const { setStepLogin, email, phone } = useAuthStore()
const loginWithPassword = useLoginWithPassword()
const formik = useFormik<LoginWithPasswordType>({
initialValues: {
password: '',
email: email
email: email ? email : undefined,
phone: phone ? phone : undefined,
},
validationSchema: Yup.object({
password: Yup.string()