Skip to content

Fix: rename 'username' to 'name' in account creation API calls (web side, #955)#996

Open
mircealungu wants to merge 2 commits intomasterfrom
auto-fix/issue-955-web
Open

Fix: rename 'username' to 'name' in account creation API calls (web side, #955)#996
mircealungu wants to merge 2 commits intomasterfrom
auto-fix/issue-955-web

Conversation

@mircealungu
Copy link
Copy Markdown
Member

Summary

Fixes the naming inconsistency described in #955.

The addUser and addBasicUser API calls were sending the user's display name as the username HTTP form parameter. However everywhere else in the stack — the User model, DB column, settings endpoint, and API JSON response — the field is called name.

This renames the outgoing form parameter from username to name in both API calls.

Must be merged together with the matching API-side PR in zeeguu/api (also on branch auto-fix/issue-955-api).

Closes #955

Commits

  1. Fix commit (d7aea56): Rename &username=&name= in addUser and addBasicUser in src/api/accounts.js.

  2. Cleanup commit (4adc798): Remove leftover debug console.log("GOT SESSOIN: " + data) (typo and all) from the logIn response handler (boy scout rule).

claude added 2 commits March 30, 2026 08:31
The addUser and addBasicUser API calls were sending the user's display
name as the 'username' form parameter, but the User model, DB column,
settings endpoint, and API response all use 'name'. Renaming the HTTP
parameter to 'name' makes the frontend consistent with the rest of
the stack.

Must be applied together with the matching API change.

Closes #955
Remove a leftover debug log with a typo ('GOT SESSOIN') from the logIn
response handler that was logging session data to the console.
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 30, 2026

Deploy Preview for voluble-nougat-015dd1 ready!

Name Link
🔨 Latest commit 4adc798
🔍 Latest deploy log https://app.netlify.com/projects/voluble-nougat-015dd1/deploys/69ca354b93e9bb0008541012
😎 Deploy Preview https://deploy-preview-996--voluble-nougat-015dd1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

Use of username instead of name in create user flow

2 participants