-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Disallowed underscores at the end of usernames aren't detected #543
Comments
@matheus23 I don't think that this is a bug. Here's some (manual) examples with multiple trailing underscores:
We've disallowed underscores at the beginning of usernames, because those are often reserved words in many systems. |
For context, I believe that this was opened in relation to https://github.com/fission-suite/webnative/issues/259
|
I guess we can just close both issues? As far as I understand, there's nothing wrong with username validation, right? |
On the backend at least, yeah. I don't think I can reproduce the FE issues, but I'll ping Jeff about that on the original issue |
Summary
Usernames like
foo_
are invalid (because they can't be used in domains likefoo_,files.fission.name
), but these cases aren't caught by the code.Impact
Not sure. Probably a bad error message in the CLI on account creation (with a name that has a trailing underscore).
Solution
Add a check for a trailing underscore to
isValid
.Detail
Missing a
note endsWithUnderscore
in thepreds
list inisValid
:The text was updated successfully, but these errors were encountered: