mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
Update: Vue 2 to Vue 3 with Typescript, node 14 to node 22, Jenkinsfile, Dockerfile, vapor.yml (Post PROD Deployment)
This commit is contained in:
+1
-1
@@ -220,7 +220,7 @@ const rules = computed(() => ({
|
||||
},
|
||||
password_confirmation: {
|
||||
required: requiredIf(() => step.value === 2),
|
||||
sameAs: sameAs(parameters.password)
|
||||
sameAs: sameAs(parameters.password, 'password')
|
||||
},
|
||||
identification_no: {
|
||||
required: requiredIf(() => step.value === 1)
|
||||
|
||||
@@ -112,7 +112,7 @@ const rules = computed(() => ({
|
||||
password: { required },
|
||||
password_confirmation: {
|
||||
required,
|
||||
sameAs: sameAs(parameters.password)
|
||||
sameAs: sameAs(parameters.password, 'password')
|
||||
}
|
||||
}
|
||||
}));
|
||||
|
||||
@@ -108,7 +108,7 @@ const rules = computed(() => ({
|
||||
password: { required },
|
||||
password_confirmation: {
|
||||
required,
|
||||
sameAs: sameAs(parameters.password)
|
||||
sameAs: sameAs(parameters.password, 'password')
|
||||
},
|
||||
}
|
||||
}));
|
||||
|
||||
@@ -308,7 +308,7 @@ const rules = computed(() => ({
|
||||
},
|
||||
password_confirmation: {
|
||||
required: requiredIf(() => step.value === 2),
|
||||
sameAs: sameAs(parameters.password)
|
||||
sameAs: sameAs(parameters.password, 'password')
|
||||
},
|
||||
identification_no: {
|
||||
required: requiredIf(() => step.value === 1)
|
||||
|
||||
@@ -40,7 +40,11 @@ const getErrorMessage = (error: ValidationErrorItem): string => {
|
||||
|
||||
if (validatorName === 'minLength') return `${errorMessages.minLength} ${params.min} characters`;
|
||||
if (validatorName === 'maxLength') return `${errorMessages.maxLength} ${params.max} characters`;
|
||||
if (validatorName === 'sameAs') return `${errorMessages.sameAs} ${params.eq} field`;
|
||||
if (validatorName === 'sameAs' || validatorName === 'sameAsPassword') {
|
||||
let fieldName = params.otherName || params.eq || 'password';
|
||||
if (fieldName === 'password') fieldName = 'password';
|
||||
return `${errorMessages.sameAs} ${fieldName} field`;
|
||||
}
|
||||
if (validatorName === 'minValue') return `${errorMessages.minValue} ${params.min}`;
|
||||
if (validatorName === 'maxValue') return `${errorMessages.maxValue} ${params.max}`;
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ const rules = computed(() => ({
|
||||
password: { required, minLength: minLength(6) },
|
||||
password_confirmation: {
|
||||
required,
|
||||
sameAsPassword: sameAs(parameters.value.password)
|
||||
sameAs: sameAs(parameters.value.password, 'password')
|
||||
}
|
||||
}
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user