Skip to content

WIP: Implement username changes via API - #14088

Draft
avirshup wants to merge 3 commits into
rust-lang:mainfrom
avirshup:implement_username_updates
Draft

WIP: Implement username changes via API#14088
avirshup wants to merge 3 commits into
rust-lang:mainfrom
avirshup:implement_username_updates

Conversation

@avirshup

@avirshup avirshup commented Jun 28, 2026

Copy link
Copy Markdown

(Updated 8/7/26)

This PR updates the PUT /api/v1/users/{user} route to allow username changes, subject to several validation checks. This is the second PR (out of 2) for issue #13766 - it's stacked on top of the changes in #14069 (so that PR's changes will also show up in this one's diffs).

Because the validation checks will need to be reused in #13768, the validation functions are implemented as a helper in crate::controllers::helpers::username::check_username().

This is still marked as "WIP" because there's still discussion on exactly how to deploy this in relation to the other username-related issues.

Please also note that, as implemented right now, the PUT /api/v1/users/{user} call can partially succeed - e.g., the username change could succeed but the email change could fail, and the user would just get the error response from the email failure.

@rustbot

This comment has been minimized.

@avirshup
avirshup force-pushed the implement_username_updates branch 2 times, most recently from ec5d41f to 1bed464 Compare July 13, 2026 21:39
@rustbot

This comment has been minimized.

@avirshup
avirshup force-pushed the implement_username_updates branch from 1bed464 to 6e96b3c Compare August 7, 2026 23:50
@avirshup
avirshup force-pushed the implement_username_updates branch from 6e96b3c to 30d2e58 Compare August 8, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants