Update SubmitDoc.vue

pull/6632/head
tugcekucukoglu 2024-10-23 15:22:53 +03:00
parent debb54cf37
commit eeacc7cf89
1 changed files with 10 additions and 10 deletions

View File

@ -38,16 +38,16 @@ export default {
username: z.string().min(1, { message: 'Username is required.' }),
password: z
.string()
.min(3, { message: 'Password must be at least 3 characters long.' })
.max(8, { message: 'Password must not exceed 8 characters.' })
.min(3, { message: 'Minimum 3 characters.' })
.max(8, { message: 'Maximum 8 characters.' })
.refine((value) => /[a-z]/.test(value), {
message: 'Password must contain at least one lowercase letter.'
message: 'Must have a lowercase letter.'
})
.refine((value) => /[A-Z]/.test(value), {
message: 'Password must contain at least one uppercase letter.'
message: 'Must have a uppercase letter.'
})
.refine((value) => /\d/.test(value), {
message: 'Password must contain at least one number.'
message: 'Must have a number.'
})
})
),
@ -104,16 +104,16 @@ export default {
username: z.string().min(1, { message: 'Username is required.' }),
password: z
.string()
.min(3, { message: 'Password must be at least 3 characters long.' })
.max(8, { message: 'Password must not exceed 8 characters.' })
.min(3, { message: 'Minimum 3 characters.' })
.max(8, { message: 'Maximum 8 characters.' })
.refine((value) => /[a-z]/.test(value), {
message: 'Password must contain at least one lowercase letter.'
message: 'Must have a lowercase letter.'
})
.refine((value) => /[A-Z]/.test(value), {
message: 'Password must contain at least one uppercase letter.'
message: 'Must have a uppercase letter.'
})
.refine((value) => /\d/.test(value), {
message: 'Password must contain at least one number.'
message: 'Must have a number.'
})
})
)