From c0a9835e80f773edf4106edeee6838b07e917db4 Mon Sep 17 00:00:00 2001 From: carlosfonseca Date: Mon, 12 Feb 2024 20:37:51 -0500 Subject: [PATCH] Solucion a comentarios 5 --- src/i18n/en/index.js | 2 + src/i18n/es/index.js | 2 + .../Customer/Card/CustomerCreditContracts.vue | 2 +- src/pages/Customer/Card/CustomerWebAccess.vue | 69 +++++++++ .../components/CustomerChangePassword.vue | 140 ++++++++++++++++++ .../components/CustomerNewPayment.vue | 4 +- 6 files changed, 216 insertions(+), 3 deletions(-) create mode 100644 src/pages/Customer/components/CustomerChangePassword.vue diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 7dc414e2a..19d7fb67c 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -161,6 +161,8 @@ export default { hasDebt: 'Customer has debt', notChecked: 'Customer not checked', noWebAccess: 'Web access is disabled', + passwordRequirements: + 'The password must have at least { length } length characters, {nAlpha} alphabetic characters, {nUpper} capital letters, {nDigits} digits and {nPunct} symbols (Ex: $%&.)\n', }, summary: { basicData: 'Basic data', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 46287e8b6..a2cb29a53 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -160,6 +160,8 @@ export default { hasDebt: 'El cliente tiene riesgo', notChecked: 'El cliente no está comprobado', noWebAccess: 'El acceso web está desactivado', + passwordRequirements: + 'La contraseña debe tener al menos { length } caracteres de longitud, {nAlpha} caracteres alfabéticos, {nUpper} letras mayúsculas, {nDigits} dígitos y {nPunct} símbolos (Ej: $%&.)', }, summary: { basicData: 'Datos básicos', diff --git a/src/pages/Customer/Card/CustomerCreditContracts.vue b/src/pages/Customer/Card/CustomerCreditContracts.vue index c23e3e6c0..04952e913 100644 --- a/src/pages/Customer/Card/CustomerCreditContracts.vue +++ b/src/pages/Customer/Card/CustomerCreditContracts.vue @@ -143,7 +143,7 @@ const updateData = () => { {{ t('Grade') }}:
- {{ item.insurances[0].grade }} + {{ item.insurances[0].grade || '-' }}
diff --git a/src/pages/Customer/Card/CustomerWebAccess.vue b/src/pages/Customer/Card/CustomerWebAccess.vue index 80f294e25..03399e235 100644 --- a/src/pages/Customer/Card/CustomerWebAccess.vue +++ b/src/pages/Customer/Card/CustomerWebAccess.vue @@ -1,24 +1,63 @@