-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Allow usernames to be case-insensitive with app passwords #40281
Conversation
d4d8b28
to
e386804
Compare
e386804
to
0951bd4
Compare
@@ -919,7 +919,7 @@ private function validateToken($token, $user = null) { | |||
); | |||
|
|||
// Check if login names match | |||
if ($user !== null && $dbToken->getLoginName() !== $user) { | |||
if ($user !== null && \strcasecmp($dbToken->getLoginName(), $user) !== 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this will work with greek, cyrillic and other utf8 strings. Maybe we don't need to support it if the username is expected to contain only ascii chars.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Error creating user: Only the following characters are allowed in a username: "a-z", "A-Z", "0-9", and "+_.@-'""
Usernames in oC10 are only a limited set of ASCII.
Kudos, SonarCloud Quality Gate passed! |
Description
An acceptance test scenario is added that uses an app password generated by user "Alice" but provides user "alice" in the webDAV requests. The scenario fails without the fix, and passes with the fix in Session.php
Related Issue
How Has This Been Tested?
CI
Types of changes
Checklist: