We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4479b27 + 32e46a8 commit a4760efCopy full SHA for a4760ef
lib/private/User/Session.php
@@ -780,7 +780,7 @@ private function validateToken($token, $user = null) {
780
* Check if login names match
781
*/
782
private function validateTokenLoginName(?string $loginName, IToken $token): bool {
783
- if ($token->getLoginName() !== $loginName) {
+ if (mb_strtolower($token->getLoginName()) !== mb_strtolower($loginName ?? '')) {
784
// TODO: this makes it impossible to use different login names on browser and client
785
// e.g. login by e-mail 'user@example.com' on browser for generating the token will not
786
// allow to use the client token with the login name 'user'.
0 commit comments