Skip to content

[feat request] validate username _before_ signup #259

@ldpr

Description

@ldpr

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.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions