عند تسجيل منتدى جديد، هناك بعض التناقضات في كيفية عرض Discourse للأخطاء عند التسجيل.
مع اسم مستخدم وكلمة مرور فارغين:
عند إدخال اسم مستخدم، ولكن حقل كلمة المرور فارغ، يتم عرض خطأ “لا يمكن أن يكون فارغًا”، ولكن الإدخال غير مميز:
عند التسجيل بأقل من الأحرف المطلوبة، لا توجد تمييزات حمراء ولا توجد أخطاء:
6 إعجابات
arun
7 سبتمبر 2025، 5:12م
2
لذلك يمكنني أن أفهم بشكل أفضل، هل يشير هذا إلى إنشاء مستخدم في منتدى أو تسجيل مختلف؟ أرى شاشة مختلفة عند إنشاء مستخدم:
هذه هي شاشة إنشاء حساب المسؤول الأولي، وهي تختلف قليلاً عن نموذج التسجيل العادي
asa
15 سبتمبر 2025، 4:21م
5
لقد واجهت هذا أيضًا عند إنشاء حسابات المسؤول الخاصة بي قبل 3 أسابيع. لقد اخترت كلمة مرور أقل من 15 حرفًا، ولكن لم يكن هناك رسالة خطأ، واضطررت إلى التخمين. بعد اختيار كلمة مرور أطول، تم إنشاء الحساب.
lindsey
(Lindsey Fogle)
16 سبتمبر 2025، 5:12م
6
@featheredtoast أحاول تكرار هذا وأواجه بعض الصعوبات.
عندما قمت بتشغيل موقع تجريبي جديد، لم أتمكن من تكرار أي من هذه الأخطاء.
لا تظهر أي أخطاء عندما يكون لديك اسم مستخدم / كلمة مرور فارغان؛ زر Continue معطل.
لا يظهر أي خطأ عند إدخال اسم المستخدم وترك كلمة المرور فارغة؛ نفس الشيء كما في الأعلى - يظل زر Continue معطلاً.
أرى خطأً مفيدًا عندما تكون كلمة المرور الخاصة بي قصيرة جدًا.
هذه مجرد تجربة جديدة عبر صفحة /pricing. أين ترى أخطاءك؟
عذرًا إذا لم يكن الأمر واضحًا - هذه هي عملية التسجيل الأولية التي تُمنح لمسؤول التسجيل، وأعتقد أن هذا متاح فقط من خلال موقع مستضاف ذاتيًا، وليس من خلال استضافة Discourse.\n\nيوجد نموذج تسجيل منفصل تمامًا بعد حصولك على رسالة “تهانينا على تثبيت Discourse”، وهذه لقطة الشاشة الكاملة لصفحة التسجيل المعنية:\n\n
إعجابَين (2)
chapoi
12 ديسمبر 2025، 8:51ص
9
لقد حصلنا للتو على بعض الإشارات الإضافية لهذه المشكلة:
我今天按照官方的方式进行安装discourse论坛
我的系统是ubuntu24的版本
安装完成后打开我的网站开始注册管理员账户,但是点击注册时没有任何反应,并且点击F12之后没有发现错误
现在就是一直卡在这个页面上
[image]
I have checked containers/app.yml and installed it. The doctor command ran without any errors, and the email connection is normal. However, I am stuck on the ‘Register Admin Account’ page and cannot proceed to the next step. The page refreshes immediately after clicking the ‘Register’ button. Why is this happening? Is it related to my configuration file ‘app.yml’?
[image]
Background
Yesterday, I self-hosted a Discourse instance on my server. After the deployment was complete, I proceeded to register the administrator (admin) account. However, after clicking the Register button, there was no response, and the process seemed to hang.
It took me a significant amount of time to realize that the issue was due to my password not meeting the minimum character length requirement.
Existing Solution & Observation
I must admit that I did see the official, friendly reminde…
أقوم بجمعها هنا.
3 إعجابات
سيتم الإصلاح بواسطة
main ← fix-ux-on-finish-installation-form
opened 09:22PM - 12 Dec 25 UTC
When submitting the admin registration form with an invalid password (blank or t… oo short), the password field was not visually highlighted with the error state, making it unclear what was wrong.
Two issues were causing this:
1. Copy-paste error: The password field container was checking `@user.errors[:username]` instead of `@user.errors[:password]`
2. Wrong error key: Password length validation errors from the UserPassword model are stored under `:"user_password.password"`, not `:password`. The template only checked the latter.
Fixed by checking both error keys and displaying all password-related errors with proper visual highlighting.
Added system spec with page object for UI behavior testing and trimmed request spec to cover edge cases that require stubs (like empty developer_emails).
Ref - https://meta.discourse.org/t/381505
Here's how the errors look like
**Blank username & blank password**
<img width="1772" height="1274" alt="CleanShot 2025-12-12 at 22 01 03" src="https://github.com/user-attachments/assets/4a6a3628-7a9b-48ee-bf9e-f6b1baba9b90" />
**Username filled & blank password**
<img width="1772" height="1274" alt="CleanShot 2025-12-12 at 22 01 18" src="https://github.com/user-attachments/assets/fdef8ad1-1aa9-4b12-90d8-aeccc8344fc0" />
**Username filled & short password**
<img width="1772" height="1274" alt="CleanShot 2025-12-12 at 22 01 29" src="https://github.com/user-attachments/assets/2c1c96e4-e5d4-40af-8f33-30ca0e1aafc5" />
أخذت الوقت لزيادة التغطية بإضافة مواصفات نظام أيضًا
4 إعجابات