When creating accounts for team members, provided username is ignored

Bug description:
When creating a new account for invited team members, the provided username is ignored and default value used instead. While it is possible to edit the username, only once, after the account is created, this is an unnecessary extra step. For the team’s owner, before assigning nicknames, it would be easier to identify members with their custom usernames than generic “userXXXXXXX”

Expected vs Current Behavior:
Expected behaviour: The new account username should be username that was provided.
Actual behaviour: The default value is used, e.g. “user2958457”

Steps to reproduce:
Select “Manage team members” in a team view and copy the invite link to use in another browser. Enter a custom username and password and click the “+ Create Account” button.

Bug appears at this link: https://replit.com/teams/join/

Screenshot(s)/Screen Recording:
Screen Shot 2023-10-24 at 2.49.00 PM
Screen Shot 2023-10-24 at 2.49.52 PM

Browser/OS/Device: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15

Replit Profile: https://replit.com/@martinhill3

I am having exactly the same problem.
This is causing big problems for my students as they are very young and don’t realise what has happened. The next time they try to log in, they try the username that they created, but it won’t work, and they have forgotten the default username that was provided.

Screen Recording here:


I am very sorry that this issue was missed. We will take a look and report back with our findings.