새로운 포럼을 등록할 때, 가입 시 Discourse가 오류를 표시하는 방식에 몇 가지 불일치가 있습니다.
사용자 이름과 비밀번호가 모두 비어 있는 경우:
사용자 이름은 입력했지만 비밀번호 필드가 비어 있는 경우, ‘비워둘 수 없음’ 오류가 표시되지만 입력 필드가 강조되지 않습니다:
요구되는 최소 글자 수보다 적은 문자로 등록을 시도할 경우, 빨간색 강조 표시도 오류 메시지도 표시되지 않습니다:
6개의 좋아요
arun
9월 7, 2025, 5:12오후
2
So I can understand better, is this referring to user creation on a forum or a different signup? I am seeing a different screen when creating an user:
This is the initial admin account creation screen, which is slightly different than the normal signup form
asa
9월 15, 2025, 4:21오후
5
I had the same problem when creating my administrator accounts 3 weeks ago. I chose a password under 15 characters, but there was no error message, and I had to puzzle over it. After I chose a longer password, the account was created.
lindsey
(Lindsey Fogle)
9월 16, 2025, 5:12오후
6
@featheredtoast I’m trying to reproduce this and I’m having some trouble.
When I spun up a new trial site, I couldn’t reproduce any of these errors.
No errors are shown when you have blank username / password; the Continue button is disabled.
No error is shown when username is entered and password is blank; same thing as above — the Continue button remains disabled.
I see an informative error when my password is too short.
This is just a new trial through the /pricing page. Where are you seeing you errors?
Sorry if it’s not clear - this is the initial signup given to an admin signup, I believe this is only available through a self-hosted site, not one through Discourse’s hosting.
There’s a completely separate sign up form after you get the “congratulations you installed Discourse”, this is the full screenshot of the signup page in question:
2개의 좋아요
이 문제에 대한 몇 가지 언급을 더 찾았습니다:
我今天按照官方的方式进行安装discourse论坛
我的系统是ubuntu24的版本
安装完成后打开我的网站开始注册管理员账户,但是点击注册时没有任何反应,并且点击F12之后没有发现错误
现在就是一直卡在这个页面上
[image]
containers/app.yml 파일을 확인하고 설치했습니다. doctor 명령어는 오류 없이 실행되었고, 이메일 연결도 정상 상태입니다. 하지만 ‘관리자 계정 등록’ 페이지에서 다음 단계로 진행하지 못하고 막혀 있습니다. ‘등록’ 버튼을 클릭하면 페이지가 즉시 새로고침됩니다. 이런 현상이 발생하는 이유는 무엇인가요? 제 설정 파일 '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개의 좋아요
다음 PR로 수정될 예정입니다.
main ← fix-ux-on-finish-installation-form
merged 09:10PM - 13 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개의 좋아요