Fix invalid password error message (#7425)

This commit is contained in:
Samuel Newman
2025-01-10 22:18:36 +00:00
committed by GitHub
parent 08c6ac7c89
commit 42a4468265
33 changed files with 44 additions and 36 deletions
+1 -1
View File
@@ -3497,7 +3497,7 @@ msgstr "Rechistro de publicación invalido u no compatible"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Nombre d'usuario u clau no validos" msgstr "Nombre d'usuario u clau no validos"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3694,7 +3694,7 @@ msgstr ""
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "" msgstr ""
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -4457,7 +4457,7 @@ msgstr "Registre de publicació no vàlid o no admès"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Nom d'usuari o contrasenya incorrectes" msgstr "Nom d'usuari o contrasenya incorrectes"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3931,7 +3931,7 @@ msgstr "Ungültiger oder nicht unterstützter Beitragrekord"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Ungültiger Benutzername oder Passwort" msgstr "Ungültiger Benutzername oder Passwort"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3499,7 +3499,7 @@ msgstr "Μη έγκυρη ή μη υποστηριζόμενη εγγραφή α
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Μη έγκυρο όνομα χρήστη ή κωδικός πρόσβασης" msgstr "Μη έγκυρο όνομα χρήστη ή κωδικός πρόσβασης"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3694,7 +3694,7 @@ msgstr ""
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "" msgstr ""
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3694,7 +3694,7 @@ msgstr ""
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "" msgstr ""
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -4085,7 +4085,7 @@ msgstr "Registro de publicación inválido o no compatible"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Nombre de usuario o contraseña no válidos" msgstr "Nombre de usuario o contraseña no válidos"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3409,7 +3409,7 @@ msgstr "Virheellinen tai ei-tuettu julkaisutietue"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Virheellinen käyttäjätunnus tai salasana" msgstr "Virheellinen käyttäjätunnus tai salasana"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3409,7 +3409,7 @@ msgstr "Enregistrement de post invalide ou non pris en charge"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Pseudo ou mot de passe incorrect" msgstr "Pseudo ou mot de passe incorrect"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3693,7 +3693,7 @@ msgstr "Taifead postála atá neamhbhailí nó gan bhunús"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Leasainm nó pasfhocal míchruinn" msgstr "Leasainm nó pasfhocal míchruinn"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -4085,7 +4085,7 @@ msgstr "Rexistro de chío inválido ou non compatíbel"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Alcume ou contrasinal incorrectos" msgstr "Alcume ou contrasinal incorrectos"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3965,7 +3965,7 @@ msgstr "अमान्य या असमर्थित पोस्ट र
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "अमान्य उपयोगकर्ता नाम या पासवर्ड" msgstr "अमान्य उपयोगकर्ता नाम या पासवर्ड"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3626,7 +3626,7 @@ msgstr "A megadott bejegyzésrekord érvénytelen vagy nem támogatott"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Érvénytelen felhasználónév vagy jelszó" msgstr "Érvénytelen felhasználónév vagy jelszó"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -4196,7 +4196,7 @@ msgstr "Catatan postingan tidak valid atau tidak didukung"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Nama pengguna atau kata sandi salah" msgstr "Nama pengguna atau kata sandi salah"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3415,7 +3415,7 @@ msgstr "Protocollo del post non valido o non supportato"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Nome utente o password errati" msgstr "Nome utente o password errati"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3409,7 +3409,7 @@ msgstr "無効またはサポートされていない投稿のレコード"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "無効なユーザー名またはパスワード" msgstr "無効なユーザー名またはパスワード"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3698,7 +3698,7 @@ msgstr "កំណត់ត្រាប្រកាសមិនត្រឹមត
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "ឈ្មោះអ្នកប្រើ ឬពាក្យសម្ងាត់មិនត្រឹមត្រូវ" msgstr "ឈ្មោះអ្នកប្រើ ឬពាក្យសម្ងាត់មិនត្រឹមត្រូវ"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3409,7 +3409,7 @@ msgstr "유효하지 않거나 지원되지 않는 게시물 기록"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "잘못된 사용자 이름 또는 비밀번호" msgstr "잘못된 사용자 이름 또는 비밀번호"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3969,7 +3969,7 @@ msgstr "अवैध वा असमर्थित पोस्ट रेक
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "अमान्य प्रयोगकर्ता नाम वा पासवर्ड" msgstr "अमान्य प्रयोगकर्ता नाम वा पासवर्ड"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3497,7 +3497,7 @@ msgstr "Ongeldig of niet-ondersteund berichtrecord"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Ongeldige gebruikersnaam of wachtwoord" msgstr "Ongeldige gebruikersnaam of wachtwoord"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3498,7 +3498,7 @@ msgstr "Nieprawidłowy lub nieobsługiwany wpis"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Nieprawidłowa nazwa lub hasło" msgstr "Nieprawidłowa nazwa lub hasło"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -4192,7 +4192,7 @@ msgstr "Postagem inválida"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Credenciais inválidas" msgstr "Credenciais inválidas"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3698,7 +3698,7 @@ msgstr "Înregistrare postare invalidă sau nesuportată"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Nume de utilizator sau parolă invalidă" msgstr "Nume de utilizator sau parolă invalidă"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3429,7 +3429,7 @@ msgstr "Неверный или неподдерживаемый пост"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Неверное имя пользователя или пароль" msgstr "Неверное имя пользователя или пароль"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -4183,7 +4183,7 @@ msgstr "ระเบียนโพสต์ไม่ถูกต้องหร
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง" msgstr "ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -4400,7 +4400,7 @@ msgstr "Geçersiz veya desteklenmeyen gönderi kaydı"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Geçersiz kullanıcı adı veya şifre" msgstr "Geçersiz kullanıcı adı veya şifre"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -4196,7 +4196,7 @@ msgstr "Невірний або непідтримуваний пост"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Невірне ім'я користувача або пароль" msgstr "Невірне ім'я користувача або пароль"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3490,7 +3490,7 @@ msgstr "Bản ghi bài đăng không hợp lệ hoặc không được hỗ tr
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "Tên người dùng hoặc mật khẩu không hợp lệ" msgstr "Tên người dùng hoặc mật khẩu không hợp lệ"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3414,7 +3414,7 @@ msgstr "帖文记录无效或不受支持"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "用户名或密码无效" msgstr "用户名或密码无效"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3414,7 +3414,7 @@ msgstr "無效抑或唔支援嘅帖文記錄"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "無效嘅用戶名抑或密碼" msgstr "無效嘅用戶名抑或密碼"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+1 -1
View File
@@ -3414,7 +3414,7 @@ msgstr "無效或不支援的貼文紀錄"
#: src/screens/Login/LoginForm.tsx:90 #: src/screens/Login/LoginForm.tsx:90
#: src/screens/Login/LoginForm.tsx:149 #: src/screens/Login/LoginForm.tsx:149
msgid "Invalid username or password" msgid "Incorrect username or password"
msgstr "用戶名稱或密碼無效" msgstr "用戶名稱或密碼無效"
#: src/components/intents/VerifyEmailIntentDialog.tsx:91 #: src/components/intents/VerifyEmailIntentDialog.tsx:91
+12 -4
View File
@@ -86,8 +86,13 @@ export const LoginForm = ({
const password = passwordValueRef.current const password = passwordValueRef.current
const authFactorToken = authFactorTokenValueRef.current const authFactorToken = authFactorTokenValueRef.current
if (!identifier || !password) { if (!identifier) {
setError(_(msg`Invalid username or password`)) setError(_(msg`Please enter your username`))
return
}
if (!password) {
setError(_(msg`Please enter your password`))
return return
} }
@@ -142,11 +147,14 @@ export const LoginForm = ({
error: errMsg, error: errMsg,
}) })
setError(_(msg`Invalid 2FA confirmation code.`)) setError(_(msg`Invalid 2FA confirmation code.`))
} else if (errMsg.includes('Authentication Required')) { } else if (
errMsg.includes('Authentication Required') ||
errMsg.includes('Invalid identifier or password')
) {
logger.debug('Failed to login due to invalid credentials', { logger.debug('Failed to login due to invalid credentials', {
error: errMsg, error: errMsg,
}) })
setError(_(msg`Invalid username or password`)) setError(_(msg`Incorrect username or password`))
} else if (isNetworkError(e)) { } else if (isNetworkError(e)) {
logger.warn('Failed to login due to network error', {error: errMsg}) logger.warn('Failed to login due to network error', {error: errMsg})
setError( setError(