This commit is contained in:
hamid zarghami
2025-11-12 09:41:21 +03:30
parent 3e839845ba
commit def14ca8be
4 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -333,7 +333,7 @@
"notification_announcement": "اعلانات و اطلاعیه ها",
"email": "ایمیل",
"sms": "پیامک",
"change_password": غییر رمز عبور",
"change_password": نظیم پسورد",
"current_password": "رمز عبور فعلی",
"new_password": "رمز عبور جدید",
"reapeat_password": "تکرار رمز عبور",
+6 -1
View File
@@ -1,4 +1,4 @@
import { FC } from 'react'
import { FC, useEffect } from 'react'
import LogoImage from '../../assets/images/logo.svg'
import LogoSmallImage from '../../assets/images/logo-small.svg'
import { useTranslation } from 'react-i18next'
@@ -14,6 +14,11 @@ const Register: FC = () => {
const { stepLogin } = useAuthStore()
const { t } = useTranslation('global')
useEffect(() => {
window.location.href = Pages.auth.login
}, [])
return (
<div className='w-full h-full flex justify-center lg:py-[75px] py-4 lg:items-center lg:px-10 px-4'>
@@ -17,13 +17,13 @@ const ChangePassword: FC = () => {
const formik = useFormik<ChangePasswordType>({
initialValues: {
password: '',
// password: '',
newPassword: '',
repeatPassword: ''
},
validationSchema: Yup.object({
password: Yup.string()
.required(t('errors.required')),
// password: Yup.string()
// .required(t('errors.required')),
newPassword: Yup.string()
.required(t('errors.required')),
repeatPassword: Yup.string()
@@ -54,14 +54,14 @@ const ChangePassword: FC = () => {
<div className='flex xl:flex-row flex-col xl:gap-10 gap-4'>
<div className='flex-1'>
<Input
{/* <Input
type='password'
className='mt-6'
placeholder={t('setting.current_password')}
name='password'
onChange={formik.handleChange}
error_text={formik.touched.password && formik.errors.password ? formik.errors.password : ''}
/>
/> */}
<Input
type='password'
className='mt-6'
+1 -1
View File
@@ -5,7 +5,7 @@ export type UpdateSettingType = {
};
export type ChangePasswordType = {
password: string;
// password: string;
newPassword: string;
repeatPassword: string;
};