Browse Source

fixes login

Gustavo Zanatta 3 days ago
parent
commit
4bfc6d5606
2 changed files with 7 additions and 15 deletions
  1. 1 1
      src/i18n/locales/en.json
  2. 6 14
      src/pages/LoginPage.vue

+ 1 - 1
src/i18n/locales/en.json

@@ -159,7 +159,7 @@
         "step_3": {
         "step_3": {
           "full_name": "Full Name",
           "full_name": "Full Name",
           "birth_date": "Date of birth",
           "birth_date": "Date of birth",
-          "birth_date_placeholder": "mm/dd/yyyy",
+          "birth_date_placeholder": "dd/mm/yyyy",
           "no_complement": "Address without complement",
           "no_complement": "Address without complement",
           "complement_placeholder": "Ex: Apartment, Suite, House.",
           "complement_placeholder": "Ex: Apartment, Suite, House.",
           "address_placeholder": "Street, Number, Neighborhood, City - ST",
           "address_placeholder": "Street, Number, Neighborhood, City - ST",

+ 6 - 14
src/pages/LoginPage.vue

@@ -317,9 +317,9 @@ const mapWorkingDays = () => {
   return mapped;
   return mapped;
 };
 };
 
 
-const hasWorkingDaySelected = () => {
-  return mapWorkingDays().length > 0;
-};
+// const hasWorkingDaySelected = () => {
+//   return mapWorkingDays().length > 0;
+// };
 
 
 const validateCurrentStep = async () => {
 const validateCurrentStep = async () => {
   const isValid = await loginForm.value?.validate();
   const isValid = await loginForm.value?.validate();
@@ -329,9 +329,9 @@ const validateCurrentStep = async () => {
   }
   }
 
 
   if(steps.value === 4) {
   if(steps.value === 4) {
-    const hasSelfie = !!stepFourForm.value.selfie_base64;
-    const hasDocumentFront = !!stepFourForm.value.document_front_base64;
-    const hasDocumentBack = !!stepFourForm.value.document_back_base64;
+    const hasSelfie = !!stepFourForm.value.selfie;
+    const hasDocumentFront = !!stepFourForm.value.document_front;
+    const hasDocumentBack = !!stepFourForm.value.document_back;
 
 
     if (!hasSelfie || !hasDocumentFront || !hasDocumentBack) {
     if (!hasSelfie || !hasDocumentFront || !hasDocumentBack) {
       $q.notify({
       $q.notify({
@@ -342,14 +342,6 @@ const validateCurrentStep = async () => {
     }
     }
   }
   }
 
 
-  if (steps.value === 6 && !hasWorkingDaySelected()) {
-    $q.notify({
-      type: 'negative',
-      message: t('provider.login.steps.step_6.select_at_least_one'),
-    });
-    return false;
-  }
-
   return true;
   return true;
 };
 };