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.
1 parent 126563c commit 961d47bCopy full SHA for 961d47b
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 (strcasecmp($token->getLoginName(), $loginName ?? '') !== 0) {
+ 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