Skip to content

Require username - #456

Open
annehaley wants to merge 4 commits into
masterfrom
require-usernames
Open

Require username#456
annehaley wants to merge 4 commits into
masterfrom
require-usernames

Conversation

@annehaley

Copy link
Copy Markdown
Collaborator

Resolves #446

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 18, 2026

Copy link
Copy Markdown

Deploying geodatalytics with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5fc7927
Status: ✅  Deploy successful!
Preview URL: https://c29b207d.geodatalytics.pages.dev
Branch Preview URL: https://require-usernames.geodatalytics.pages.dev

View logs

@annehaley
annehaley requested a review from BryonLewis August 18, 2026 17:54

@BryonLewis BryonLewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some comments/questions about this PR. Mostly notes that may be require a subsequent PR.

  • Just a reminder that we either need to create some sort of migration or manually make sure that all existing users that have username based on the email have it swapped to something that isn't their email, or remove all existing users.
  • When doing a GET /projects there is information about the owner including the username and is_superuser, should we prevent that information from being sent during this request? This information leaks through for non-authenticated users. This may be a bigger lift because I think you would have a response with the owner/collaborator/follower information removed for unauthenticated users because they never open the access control.
  • I question if the serializer should be returning is_superuser for most of the requests that contain users like project owners and user lists? Is it being used in the client anywhere? I think it's only used on the /users/me request. So access control doesn't need to leak who is a super user.
  • UserFactory/SuperUserFactory in the tests still use username = email which isn't true anymore after this. Technically it doesn't matter but it would probably be a better representation if username was used.

<span v-if="initials" style="text-transform: uppercase">
{{ initials }}
<v-tooltip activator="parent" location="end">
{{ nameLabel }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The #446 issue mentions showing the username as a subtitle and tooltip, this right here is showing the full first/last name as the tooltip.

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.

Require unique usernames on signup

2 participants