Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification about wrong username #191

Open
cyberb opened this issue Mar 8, 2023 · 1 comment
Open

Clarification about wrong username #191

cyberb opened this issue Mar 8, 2023 · 1 comment

Comments

@cyberb
Copy link
Contributor

cyberb commented Mar 8, 2023

Username regex failure does not explain what exactly is wrong.
For example this config which users do not see fails on first capital case letter:

USERNAME_REGEX="^[a-z][a-zA-Z0-9\._-]{1,32}$"

Message is username is invalid.

Unless there is a library to explain regex failures which is user friendly probably the simplest thing is to add another field:

USERNAME_REGEX_MESSAGE="should start with lower case letter; contain only letters, numbers, dot, underscore or dash; be less than 32 characters"
@wheelybird
Copy link
Owner

Hi. Yes, that's a good idea. I'll add that in the next release.

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

No branches or pull requests

2 participants