Skip to content

Anonymise users and add script for creating users - #283

Merged
guitarwhal merged 10 commits into
stagingfrom
no-emails
May 29, 2026
Merged

guitarwhal merged 10 commits into
stagingfrom
no-emails

Conversation

@guitarwhal

@guitarwhal guitarwhal commented May 29, 2026 •

Copy link
Copy Markdown
Collaborator

Remove ability to register:

  • Instead, add a script to create users in scripts/
  • Create username-words.json, a list of ~100 adjectives and animals
    • Usernames are generated from a random adjective, animal and a number between 1-1000
    • Passwords are the same but without the numbers
  • Add creation steps to README
  • Checks username on login for @ to allow old users emails to still work

Tweak profile:

  • Remove email, name, and student number
  • Center it properly in both desktop and mobile sizes

Closes #276

@AltrosMado AltrosMado 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.

Image

Need to remove register button on signin page (button leads to nothing)

Comment thread scripts/create-users.ts Resolved
@AltrosMado

Copy link
Copy Markdown
Collaborator

[Idea:] After creating the user, can we take the output (i.e the username and password) and save it to a file so its easier for eric rather then having to copy paste

@AltrosMado

Copy link
Copy Markdown
Collaborator
image

We should still show the name of the user (i.e the autogenerated one)

@AltrosMado

Copy link
Copy Markdown
Collaborator

Is there way to make sure that users w/ the same usernames are not created?

@guitarwhal

Copy link
Copy Markdown
Collaborator Author

Is there way to make sure that users w/ the same usernames are not created?

In theory there is, but I forgot to remove if(true) on my DB check lol (supabase throws an auth error on a failed createUser). I will add something that guarantees there are no duplicates by random chance within the same run.

@guitarwhal

Copy link
Copy Markdown
Collaborator Author
image

We should still show the name of the user (i.e the autogenerated one)

image

I could give it a shot but it's not a priority rn

@guitarwhal

Copy link
Copy Markdown
Collaborator Author
Image

Need to remove register button on signin page (button leads to nothing)

Done

@Vysan13 Vysan13 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.

Looks great!

@guitarwhal

Copy link
Copy Markdown
Collaborator Author

Is there way to make sure that users w/ the same usernames are not created?

image Example

@guitarwhal

Copy link
Copy Markdown
Collaborator Author
image We should still show the name of the user (i.e the autogenerated one)
image

I could give it a shot but it's not a priority rn

image

nvm that was easy

@guitarwhal
guitarwhal merged commit f6753ae into staging May 29, 2026
2 checks passed
@guitarwhal
guitarwhal deleted the no-emails branch May 29, 2026 18:53
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.

4 participants