pull/6632/head
Mert Sincan 2024-10-23 05:11:19 +01:00
parent ed343909db
commit 4699766152
3 changed files with 8 additions and 8 deletions

View File

@ -43,7 +43,7 @@ import DynamicFormSubmit from './dynamic/DynamicFormSubmit.vue';
export default { export default {
data() { data() {
return { return {
userNameSchema: z.string().min(1, { message: 'Username is required' }), userNameSchema: z.string().min(1, { message: 'Username is required.' }),
passwordSchema: z passwordSchema: z
.string() .string()
.min(3, { message: 'Password must be at least 3 characters long.' }) .min(3, { message: 'Password must be at least 3 characters long.' })
@ -66,7 +66,7 @@ export default {
label: 'Username', label: 'Username',
defaultValue: 'PrimeVue', defaultValue: 'PrimeVue',
fluid: true, fluid: true,
schema: z.string().min(1, { message: 'Username is required' }) schema: z.string().min(1, { message: 'Username is required.' })
}, },
password: { password: {
groupId: 'passId_2', groupId: 'passId_2',
@ -159,7 +159,7 @@ import DynamicFormSubmit from './dynamic/DynamicFormSubmit.vue';
export default { export default {
data() { data() {
return { return {
userNameSchema: z.string().min(1, { message: 'Username is required' }), userNameSchema: z.string().min(1, { message: 'Username is required.' }),
passwordSchema: z passwordSchema: z
.string() .string()
.min(3, { message: 'Password must be at least 3 characters long.' }) .min(3, { message: 'Password must be at least 3 characters long.' })
@ -182,7 +182,7 @@ export default {
label: 'Username', label: 'Username',
defaultValue: 'PrimeVue', defaultValue: 'PrimeVue',
fluid: true, fluid: true,
schema: z.string().min(1, { message: 'Username is required' }) schema: z.string().min(1, { message: 'Username is required.' })
}, },
password: { password: {
groupId: 'passId_2', groupId: 'passId_2',

View File

@ -28,7 +28,7 @@ export default {
}, },
resolver: zodResolver( resolver: zodResolver(
z.object({ z.object({
username: z.string().min(1, { message: 'Username is required' }) username: z.string().min(1, { message: 'Username is required.' })
}) })
), ),
code: { code: {
@ -64,7 +64,7 @@ export default {
}, },
resolver: zodResolver( resolver: zodResolver(
z.object({ z.object({
username: z.string().min(1, { message: 'Username is required' }) username: z.string().min(1, { message: 'Username is required.' })
}) })
) )
}; };

View File

@ -35,7 +35,7 @@ export default {
}, },
resolver: zodResolver( resolver: zodResolver(
z.object({ z.object({
username: z.string().min(1, { message: 'Username is required' }), username: z.string().min(1, { message: 'Username is required.' }),
password: z password: z
.string() .string()
.min(3, { message: 'Password must be at least 3 characters long.' }) .min(3, { message: 'Password must be at least 3 characters long.' })
@ -101,7 +101,7 @@ export default {
}, },
resolver: zodResolver( resolver: zodResolver(
z.object({ z.object({
username: z.string().min(1, { message: 'Username is required' }), username: z.string().min(1, { message: 'Username is required.' }),
password: z password: z
.string() .string()
.min(3, { message: 'Password must be at least 3 characters long.' }) .min(3, { message: 'Password must be at least 3 characters long.' })