fix
Deploy banu-front / deploy (push) Successful in 1m19s

This commit is contained in:
sajjadtalkhabi
2026-06-05 14:41:38 +03:30
parent d42b7aaa7b
commit 1c665830b0
27 changed files with 565 additions and 617 deletions
+11 -9
View File
@@ -1,22 +1,24 @@
import { object, string } from 'yup'
import { passwordRule } from '@/constants/rules/passwordRule'
import { phoneNumberRule } from '@/constants/rules/phoneNumberRule'
import { nationalCodeRule } from '@/constants/rules/nationalCodeRule'
import { optionalPasswordRule } from '@/constants/rules/passwordRule'
import { optionalPasswordConfirmationRule } from '@/constants/rules/passwordConfirmationRule'
import { passwordConfirmationRule } from '@/constants/rules/passwordConfirmationRule'
export const studentProfileSchema = object().shape({
firstName: string().required().min(2),
lastName: string().required().min(2),
phoneNumber: phoneNumberRule,
name: string().required().min(2),
phone: phoneNumberRule,
nationalCode: nationalCodeRule,
birthDate: string().nullable().notRequired(),
maritalStatus: string().nullable().notRequired(),
marriageStatus: string().nullable().notRequired(),
gender: string().nullable().notRequired(),
bio: string().nullable().notRequired(),
provinceId: string().nullable().notRequired(),
cityId: string().nullable().notRequired(),
address: string().nullable().notRequired(),
password: optionalPasswordRule,
passwordConfirmation: optionalPasswordConfirmationRule,
})
export const studentResetPasswordSchema = object().shape({
phone: phoneNumberRule,
password: passwordRule,
passwordConfirmation: passwordConfirmationRule,
})