From 1dea5ea331ffbbb1900fe17c46c8bd6d6d9232e8 Mon Sep 17 00:00:00 2001 From: Guillaume Heurtier <guillaume.heurtier@maarch.org> Date: Thu, 12 Nov 2020 15:40:57 +0100 Subject: [PATCH] FIX #15411 TIME 0:10 fix sensitive case ldap login --- src/core/controllers/AuthenticationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/controllers/AuthenticationController.php b/src/core/controllers/AuthenticationController.php index 22d51b4c497..f27c10cf8ce 100755 --- a/src/core/controllers/AuthenticationController.php +++ b/src/core/controllers/AuthenticationController.php @@ -427,7 +427,7 @@ class AuthenticationController if (empty($authenticated)) { $authenticated = AuthenticationModel::authentication(['login' => $login, 'password' => $password]); } else { - $user = UserModel::getByLogin(['login' => $login, 'select' => ['id']]); + $user = UserModel::getByLowerLogin(['login' => $login, 'select' => ['id']]); UserModel::updatePassword(['id' => $user['id'], 'password' => $password]); } } -- GitLab