X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fcore.cpp;h=298d7e35f1573b2b9d84e97e90138c78c5e11277;hb=e733408e4759473bf38831f498f48a0f2f5e6dc7;hp=32337988388958a0b9b376beec2a8c89a613339e;hpb=d1b6499b0b848d4287efae89107576548533502c;p=quassel.git diff --git a/src/core/core.cpp b/src/core/core.cpp index 32337988..298d7e35 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -254,7 +254,7 @@ void Core::clientHasData() { mutex.lock(); UserId uid = storage->validateUser(msg["User"].toString(), msg["Password"].toString()); mutex.unlock(); - if(!uid) { + if(uid == 0) { reply["MsgType"] = "ClientLoginReject"; reply["Error"] = tr("Invalid username or password!
The username/password combination you supplied could not be found in the database."); SignalProxy::writeDataToDevice(socket, reply);