-
Notifications
You must be signed in to change notification settings - Fork 32
Allow numbers in usernames #224
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
base: master
Are you sure you want to change the base?
Changes from all commits
77dd0e4
fe06b66
ae66b47
0083f29
3adda0e
8264faa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,6 @@ class TestValidateUsername: | |
'Ckuehl', | ||
'ckuehl!', | ||
'123123', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would this be valid since the regex selects 3-16 digits/lowercase nums? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not valid because the validation logic comes from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the goal of the regex to handle any arbitrary Kerberos principal, or only those which correspond to valid usernames? I must point out that the regex as written won't match hypothetical Kerberos principals which are longer than 16 characters, have hyphens in them, or the like. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's fair. I think making it tighter and in line with what we allow will be better than in this weird state of not doing either. |
||
'f00f00', | ||
]) | ||
def test_failure(self, username): | ||
with pytest.raises(ValueError): | ||
|
Uh oh!
There was an error while loading. Please reload this page.