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 ( -
{e.preventDefault(); loggin();}}> + {e.preventDefault(); loggin();}}>

{t("modals.steam-login.title")}

@@ -33,9 +33,12 @@ export const LoginModal: ModalComponent<{username: string, password: string, sta setUsername(e.target.value)} value={username} type="text" name="username" id="username" placeholder={t("modals.steam-login.inputs.username.placeholder")}/> -
+
setPassword(e.target.value)} value={password} type="password" name="password" id="password" placeholder={t("modals.steam-login.inputs.password.placeholder")}/> + {password?.length > 64 && ( + {t("modals.steam-login.inputs.password.max-length-warning")} + )}
{t("modals.steam-login.why-credentials")}