From 0ce2b9493ab0d1d27d4e407e52610f8e6e329673 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Mon, 29 May 2023 20:59:27 +0200 Subject: [PATCH] [hotfix] Add warning if the password exceed 64 characters --- assets/jsons/translations/de.json | 3 ++- assets/jsons/translations/en.json | 3 ++- assets/jsons/translations/es.json | 3 ++- assets/jsons/translations/fr.json | 3 ++- .../components/modal/modal-types/login-modal.component.tsx | 7 +++++-- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/assets/jsons/translations/de.json b/assets/jsons/translations/de.json index 4845287c..a776735d 100644 --- a/assets/jsons/translations/de.json +++ b/assets/jsons/translations/de.json @@ -472,7 +472,8 @@ }, "password": { "label": "Passwort", - "placeholder": "Gebe dein Passwort ein" + "placeholder": "Gebe dein Passwort ein", + "max-length-warning": "Das Passwort überschreitet 64 Zeichen! Wenn das Passwort ungültig ist, versuchen Sie nur die ersten 64 Zeichen einzugeben." }, "stay": { "label": "Verbunden bleiben" diff --git a/assets/jsons/translations/en.json b/assets/jsons/translations/en.json index 612612dc..b6e90ac7 100644 --- a/assets/jsons/translations/en.json +++ b/assets/jsons/translations/en.json @@ -472,7 +472,8 @@ }, "password": { "label": "Password", - "placeholder": "Enter your password" + "placeholder": "Enter your password", + "max-length-warning": "The password exceeds 64 characters! If the password is invalid, try to put its first 64 characters." }, "stay": { "label": "Stay connected" diff --git a/assets/jsons/translations/es.json b/assets/jsons/translations/es.json index 4da0b6d5..68a98329 100644 --- a/assets/jsons/translations/es.json +++ b/assets/jsons/translations/es.json @@ -471,7 +471,8 @@ }, "password": { "label": "Contraseña", - "placeholder": "Introduzca su contraseña" + "placeholder": "Introduzca su contraseña", + "max-length-warning": "¡La contraseña supera los 64 caracteres! Si la contraseña es inválida, intenta ingresar solo sus primeros 64 caracteres." }, "stay": { "label": "Manténgase conectado" diff --git a/assets/jsons/translations/fr.json b/assets/jsons/translations/fr.json index 6254a57b..3221fd19 100644 --- a/assets/jsons/translations/fr.json +++ b/assets/jsons/translations/fr.json @@ -471,7 +471,8 @@ }, "password": { "label": "Mot de passe", - "placeholder": "Entre ton mot de passe" + "placeholder": "Entre ton mot de passe", + "max-length-warning": "Le mot de passe dépasse 64 caractères ! Si le mot de passe est invalide, tente d'entrer seulement ses 64 premiers caractères." }, "stay": { "label": "Rester connecté" diff --git a/src/renderer/components/modal/modal-types/login-modal.component.tsx b/src/renderer/components/modal/modal-types/login-modal.component.tsx index 88b74566..74bb33ab 100644 --- a/src/renderer/components/modal/modal-types/login-modal.component.tsx +++ b/src/renderer/components/modal/modal-types/login-modal.component.tsx @@ -25,7 +25,7 @@ export const LoginModal: ModalComponent<{username: string, password: string, sta } return ( -