diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2015-12-27 05:22:53 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2016-01-05 02:00:29 +0300 |
commit | c22393e9db954c2a0ceac305e32e76b043a21559 (patch) | |
tree | a9f1c320e518f07dd34c84415f728223aa75408b /src/murmur/Messages.cpp | |
parent | c56cb0101d2c419516d073a444787be02a768ee2 (diff) |
Messages, Murmur.ice: make username checking case insensitive throughout Murmur.
The database query for looking up users in ServerDB has always been
case insensitive.
This commit makes the "duplicate user"-check in Messages.cpp case
insensitive as well.
Furthermore, this commit updates the documentation for the authenticate()
callback in Murmur.ice to document that authenticators should strive to
make usernames case insensitive.
Fixes mumble-voip/mumble#1078
Diffstat (limited to 'src/murmur/Messages.cpp')
-rw-r--r-- | src/murmur/Messages.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/murmur/Messages.cpp b/src/murmur/Messages.cpp index 695075183..8e2bee3ce 100644 --- a/src/murmur/Messages.cpp +++ b/src/murmur/Messages.cpp @@ -149,7 +149,7 @@ void Server::msgAuthenticate(ServerUser *uSource, MumbleProto::Authenticate &msg if (u == uSource) continue; if (((u->iId>=0) && (u->iId == uSource->iId)) || - (u->qsName == uSource->qsName)) { + (u->qsName.toLower() == uSource->qsName.toLower())) { uOld = u; break; } |