change password
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user