When registering a new forum, there’s a few inconsistencies in how Discourse displays errors when signing up.
With blank username and password:
When username entered, but password field is blank, can’t be blank error is shown, but input is not highlighted:
When registering with less than required characters, there are no red highlights and also no errors:
6 Likes
arun
September 7, 2025, 5:12pm
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
September 15, 2025, 4:21pm
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)
September 16, 2025, 5:12pm
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 Likes
chapoi
December 12, 2025, 8:51am
9
We just got a few more mentions of this issue:
我今天按照官方的方式进行安装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…
Collecting them here.
3 Likes
Will be fixed by
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" />
Took the time to increase coverage by adding a system spec as well
4 Likes