-
Notifications
You must be signed in to change notification settings - Fork 18
[feat request] validate username _before_ signup #259
Copy link
Copy link
Closed
Labels
Milestone
Description
ideally, it would be best for usernames to only be letters and numbers (maybe with hyphens and underscores?) I had a quick skim through our users table yesterday and even found some users with emojis as their username. it's humurous sure and works fine on sqlite, but will probably cause issues with mysql etc so it's probably best to nip this in the bud.
i'm unsure the best way of doing this and i'm a bit of a vue noob, it could be done via html with:
<input type="text" pattern="[a-z][a-z0-9-_]">
but maybe there's a better, cleaner way of doing it?
sorry also if this is something implemented in the newer crates, i had a quick skim through issues and didn't see it mentioned.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done