diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/sync/LoginActivity.kt b/app/src/main/java/org/ole/planet/myplanet/ui/sync/LoginActivity.kt
index d0eed59e4f..5627520938 100644
--- a/app/src/main/java/org/ole/planet/myplanet/ui/sync/LoginActivity.kt
+++ b/app/src/main/java/org/ole/planet/myplanet/ui/sync/LoginActivity.kt
@@ -531,6 +531,10 @@ class LoginActivity : SyncActivity(), TeamListAdapter.OnItemClickListener {
alertGuestLoginBinding.etUserName.error = getString(R.string.username_cannot_be_empty)
isValid = false
}
+ if (username.length > 25) {
+ alertGuestLoginBinding.etUserName.error = getString(R.string.username_too_long)
+ isValid = false
+ }
if (firstChar != null && !Character.isDigit(firstChar) && !Character.isLetter(firstChar)) {
alertGuestLoginBinding.etUserName.error = getString(R.string.must_start_with_letter_or_number)
isValid = false
diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/userprofile/BecomeMemberActivity.kt b/app/src/main/java/org/ole/planet/myplanet/ui/userprofile/BecomeMemberActivity.kt
index 31c89f6747..d7d9c0d619 100644
--- a/app/src/main/java/org/ole/planet/myplanet/ui/userprofile/BecomeMemberActivity.kt
+++ b/app/src/main/java/org/ole/planet/myplanet/ui/userprofile/BecomeMemberActivity.kt
@@ -78,7 +78,10 @@ class BecomeMemberActivity : BaseActivity() {
override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
val input = s.toString()
-
+ if (input.length > 15) {
+ activityBecomeMemberBinding.etUsername.error = getString(R.string.username_too_long)
+ return
+ }
val firstChar = if (input.isNotEmpty()) input[0] else '\u0000'
var hasInvalidCharacters = false
val hasSpecialCharacters: Boolean
diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml
index 2a3b5eea2b..9ffe4c625d 100644
--- a/app/src/main/res/values-ar/strings.xml
+++ b/app/src/main/res/values-ar/strings.xml
@@ -192,6 +192,7 @@
عرض الرد على:
تاريخ الافتتاح
استطلاعي
+ يجب أن يكون اسم المستخدم أقل من 15 حرفًا
لم يتمكن من إزالة المستخدم
لا يوجد أعضاء فريق لتكليف المهام
لم يتم اختيار أي عضو. يرجى المحاولة مرة أخرى
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index 9b2cc819ac..425d4ebccb 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -192,6 +192,7 @@
mostrando la respuesta de:
Fecha de apertura
miEncuesta
+ el nombre de usuario debe tener menos de 15 caracteres
No se pudo eliminar al usuario
No hay miembros del equipo presentes para asignar tareas
No se seleccionó ningún miembro. Por favor, inténtalo de nuevo
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index 0efd6a03ee..218848770f 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -192,6 +192,7 @@
Affichage de la réponse de :
Date d\'ouverture
Mon sondage
+ le nom d\'utilisateur doit comporter moins de 15 caractères
L\'utilisateur n\'a pas pu être supprimé
Aucun membre de l\'équipe présent pour attribuer des tâches
Aucun membre sélectionné. Veuillez réessayer
diff --git a/app/src/main/res/values-ne/strings.xml b/app/src/main/res/values-ne/strings.xml
index 2a65bedbd0..c6eb22b668 100644
--- a/app/src/main/res/values-ne/strings.xml
+++ b/app/src/main/res/values-ne/strings.xml
@@ -192,6 +192,7 @@
उत्तर देखाउँदै:
खोल्ने मिति
मेरो सर्वेक्षण
+ प्रयोगकर्ताको नाम १५ वर्णभन्दा कम हुनुपर्छ
प्रयोगकर्ता हटाउन सकिएन
कार्य सौंपन टोली सदस्यहरू उपस्थित छैनन्
कुनै सदस्य चयन गरिएको छैन। कृपया फेरि प्रयास गर्नुहोस्
diff --git a/app/src/main/res/values-so/strings.xml b/app/src/main/res/values-so/strings.xml
index 813199cd8e..998d0eff51 100644
--- a/app/src/main/res/values-so/strings.xml
+++ b/app/src/main/res/values-so/strings.xml
@@ -192,6 +192,7 @@
muujinaya jawaabta:
Taariikhda Furan
Galmadaayda
+ magaca isticmaale waa inuu ka yar yahay 15 xaraf
Isticmaalaha lama saari karin
Wax xubno koox ah looma hayo in shaqo loo xil saaro
Ma jiro xubin la doortay. Fadlan isku day mar kale
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index a13d1b6193..b32ff3aae6 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -192,6 +192,7 @@
Showing reply of:
Open Date
mySurvey
+ username should be less than 15 characters
User could not be removed
No Team members present to assign tasks
No member selected. Please try again