Skip to content

users: the username is given by an administrator; the header shows it - #4

Merged
bzed merged 2 commits into
mainfrom
fix/account-name
Nov 1, 2026
Merged

bzed merged 2 commits into
mainfrom
fix/account-name

Conversation

@bzed

@bzed bzed commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner
  • The header shows the username, then the name, then the Steam ID, and follows a change on the same page. GET / returns the username in its user part.
  • A username is required for a new person: dzo user grant --username, a field on the people page, username in PUT /users/<id>. It is the login name and what people see.
  • Only an administrator changes it. The account page shows it read-only; PUT /account/password and dzo user password no longer take a username, and a person without one has no password login (409). The display name is optional and no longer edited on the account page.
  • Removing a password or dzo user reset keeps the username.
  • Docs, cheat sheet and scripts/test-client.sh follow.

make check passes (coverage 85.9%). make test-client was not run for the script change.

🤖 Generated with Claude Code

PUT /account/name changes the display name (64 characters, audited). The
header shows the username, then the name, then the Steam ID, and follows a
change on the same page. GET / gives the username in its user part.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.54839% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.42%. Comparing base (a71e233) to head (813a26e).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
internal/api/users.go 88.23% 2 Missing ⚠️
internal/moderation/accounts.go 83.33% 1 Missing ⚠️
internal/web/account.go 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #4      +/-   ##
==========================================
+ Coverage   86.39%   86.42%   +0.02%     
==========================================
  Files         210      210              
  Lines       20447    20465      +18     
==========================================
+ Hits        17666    17687      +21     
+ Misses       2771     2768       -3     
  Partials       10       10              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…dding a person

A new person needs a username (dzo user grant --username, the people page, PUT
/users/<id>); it is the login name and what the header shows. Only an
administrator changes it: the account page no longer edits it, and the name form
and PUT /account/name of the previous commit are gone, real names being optional.
A password needs a username, so dzo user password and PUT /account/password no
longer take one. Removing a password or resetting a person keeps the username.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@bzed bzed changed the title web: the account page edits the name; the header shows the username users: the username is given by an administrator; the header shows it Nov 1, 2026
@bzed
bzed merged commit 2bd530c into main Nov 1, 2026
22 of 23 checks passed
@bzed
bzed deleted the fix/account-name branch November 1, 2026 01:26
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