From 4044b13175e46b2aabc95a659c148f5210378a5e Mon Sep 17 00:00:00 2001 From: gerard Date: Fri, 6 Jul 2018 08:18:55 +0200 Subject: [PATCH] Bug #353 El error de usuario web repetido es confuso --- services/loopback/common/locale/en.json | 2 +- services/loopback/common/locale/es.json | 2 +- services/loopback/common/models/account.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/loopback/common/locale/en.json b/services/loopback/common/locale/en.json index b1fc2006f..65a000c1b 100644 --- a/services/loopback/common/locale/en.json +++ b/services/loopback/common/locale/en.json @@ -7,7 +7,7 @@ "Can't be blank": "Can't be blank", "Invalid TIN": "Invalid TIN", "TIN must be unique": "TIN must be unique", - "A user with that name already exists": "A user with that name already exists", + "A client with that Web User name already exists": "A client with that Web User name already exists", "Is invalid": "Is invalid", "Quantity cannot be zero": "Quantity cannot be zero", "Enter an integer different to zero": "Enter an integer different to zero", diff --git a/services/loopback/common/locale/es.json b/services/loopback/common/locale/es.json index e2f576620..58fe0f3c1 100644 --- a/services/loopback/common/locale/es.json +++ b/services/loopback/common/locale/es.json @@ -7,7 +7,7 @@ "Can't be blank": "No puede estar en blanco", "Invalid TIN": "DNI Incorrecto", "TIN must be unique": "El NIF/CIF debe ser Ășnico", - "A user with that name already exists": "Ya existe un usuario con ese nombre", + "A client with that Web User name already exists": "Ya existe un cliente con ese Usuario Web", "Is invalid": "Is invalid", "Quantity cannot be zero": "La cantidad no puede ser cero", "Enter an integer different to zero": "Introduce un entero distinto de cero", diff --git a/services/loopback/common/models/account.js b/services/loopback/common/models/account.js index 3a7cb2da8..791f21d14 100644 --- a/services/loopback/common/models/account.js +++ b/services/loopback/common/models/account.js @@ -4,7 +4,7 @@ module.exports = Self => { // Validations Self.validatesUniquenessOf('name', { - message: 'A user with that name already exists' + message: `A client with that Web User name already exists` }); Self.observe('before save', (ctx, next) => {