Improved login error message

This commit is contained in:
Fabio Bas
2015-12-11 18:23:34 +01:00
parent a6ff54ae0e
commit beecc0f970
5 changed files with 17 additions and 2 deletions

View File

@@ -387,7 +387,7 @@ Response::ResponseCode Server_ProtocolHandler::cmdLogin(const Command_Login &cmd
QString clientId = QString::fromStdString(cmd.clientid()).simplified();
QString clientVersion = QString::fromStdString(cmd.clientver()).simplified();
if (userName.isEmpty() || (userInfo != 0))
if (userInfo != 0)
return Response::RespContextError;
// check client feature set against server feature set