1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-15 13:33:36 +02:00

Do not allow creation of accounts with same name and different case

This commit is contained in:
Ivan Savenko 2024-04-05 18:49:54 +03:00
parent 7c18c8b1da
commit 2c5e6974dc

View File

@ -288,7 +288,7 @@ void LobbyDatabase::prepareStatements()
isAccountNameExistsStatement = database->prepare(R"(
SELECT COUNT(displayName)
FROM accounts
WHERE displayName = ?
WHERE displayName = ? COLLATE NOCASE
)");
}