enforce lowercase usernames while keeping backwards-compatibility for authentication

This commit is contained in:
Andrew Dolgov
2024-08-16 14:28:20 +03:00
parent 99e444d1d2
commit b8cbb167d4
2 changed files with 3 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ class Auth_Internal extends Auth_Base implements IAuthModule2 {
if ($login) {
$user = ORM::for_table('ttrss_users')
->where('login', $login)
->where_raw('LOWER(login) = LOWER(?)', [$login])
->find_one();
if ($user) {