Skip to content

feat(profile): let players change their name - #5

Merged
coko7 merged 1 commit into
mainfrom
feat/rename
Nov 28, 2026
Merged

coko7 merged 1 commit into
mainfrom
feat/rename

Conversation

@coko7

@coko7 coko7 commented Nov 27, 2026

Copy link
Copy Markdown
Owner

What

  • A "Change your name" form on /me posts to /me/name, then redirects back with a message: changed, invalid, or taken.
  • Same rules as aot user rename: 3–24 characters (letters, digits, _ or -), unique ignoring case. Changing only the case of your own name is allowed.
  • The login name of a password account is separate and doesn't change. OAuth logins aren't affected.
  • The server logs each rename (old renamed to new) so you can see who is who.
  • Release 2.1.0: changelog entry in en and fr, dated 2026-12-01. Change the date if it's deployed later.

Check

  • New test players_can_rename_themselves: rename, a name taken in another case, invalid names, logged out, own name in another case, then logging in with the old login name.
  • Tried by hand against a local server; screenshots of the success and "already taken" messages.
  • fmt, clippy, 26 tests pass.

Not included

  • No limit on how often a player can rename.
  • No reserved names.
  • No check for look-alike names such as alice-k next to alice_k.

Co-Authored-By: lazytrek 352825308+lazytrek@users.noreply.github.com

A form on /me posts to /me/name. Names follow the same rules as the CLI
(3-24 characters: letters, digits, '_' or '-') and stay unique ignoring
case. The login name doesn't change. Version 2.1.0.

Co-Authored-By: lazytrek <352825308+lazytrek@users.noreply.github.com>
@coko7
coko7 merged commit 89fe617 into main Nov 28, 2026
2 checks passed
@coko7
coko7 deleted the feat/rename branch November 28, 2026 11:15
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.

1 participant