mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: use mb_strtolower to convert login name
Signed-off-by: Cleopatra Enjeck M. <patrathewhiz@gmail.com>
This commit is contained in:
parent
a6d6a1fa9e
commit
32e46a8b3a
1 changed files with 1 additions and 1 deletions
|
|
@ -780,7 +780,7 @@ class Session implements IUserSession, Emitter {
|
|||
* Check if login names match
|
||||
*/
|
||||
private function validateTokenLoginName(?string $loginName, IToken $token): bool {
|
||||
if (strcasecmp($token->getLoginName(), $loginName ?? '') !== 0) {
|
||||
if (mb_strtolower($token->getLoginName()) !== mb_strtolower($loginName ?? '')) {
|
||||
// TODO: this makes it impossible to use different login names on browser and client
|
||||
// e.g. login by e-mail 'user@example.com' on browser for generating the token will not
|
||||
// allow to use the client token with the login name 'user'.
|
||||
|
|
|
|||
Loading…
Reference in a new issue