Skip to content

character limit for local username#5594

Open
Khooaaa wants to merge 2 commits into
supertuxkart:masterfrom
Khooaaa:LocalUsernameLimit
Open

character limit for local username#5594
Khooaaa wants to merge 2 commits into
supertuxkart:masterfrom
Khooaaa:LocalUsernameLimit

Conversation

@Khooaaa

@Khooaaa Khooaaa commented Dec 17, 2025

Copy link
Copy Markdown
Contributor

Limit local username to 50 characters

issue #5555

Agreement

By creating a pull request in stk-code, you hereby agree to dual-license your contribution as
GNU General Public License version 3 or any later version and
Mozilla Public License version 2 or any later version.

This includes your previous contribution(s) under the same name of contributor.

Keep the above statement in the pull request comment for agreement.

@willliam9

Copy link
Copy Markdown
Contributor

The value 50 should be in a configuration value

@Alayan-stk-2 Alayan-stk-2 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your Pull Requests!

The extra + symbols need to be removed. It seems like you copied from a patch file and forgot to check if the code actually compiles.

Wil's suggestion of making the limit configurable in something like stk config also makes some sense, although it's more of a nice to have.

{
if (local_name.size() == 0)
return;
if (local_name.empty())

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've put actual + symbols in your code, this won't even compile properly.

GustaLOLE added a commit to GustaLOLE/stk-code that referenced this pull request Feb 4, 2026
 - I used the Khooaaa's pull request to start;
 - I reduced the limit from 50 to 30 characters (to stay like creating online accounts);
 - I changed the line (and function) when Khooaaa puts the if-case:
      Before: Was in RegisterScreen::handleLocalName, not working properly;
      After: Are now in RegisterScreen::doRegister(), and it's not working.
GustaLOLE added a commit to GustaLOLE/stk-code that referenced this pull request Jun 27, 2026
- I started my work basing in the PR supertuxkart#5594, made by Khoaaa (thx for the initial work btw)
 - The local username length now is limited to 30 characters, but can be changed in user_config.xml (with UI overflows risk).
@GustaLOLE GustaLOLE mentioned this pull request Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants