From d1a40fd36ea712d6552bb7fc5c97351767694f49 Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Wed, 8 Dec 2021 04:54:36 +0100 Subject: [PATCH] fix regression in local games (#4490) --- common/server_protocolhandler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/server_protocolhandler.cpp b/common/server_protocolhandler.cpp index 56c37dcd..af37836a 100644 --- a/common/server_protocolhandler.cpp +++ b/common/server_protocolhandler.cpp @@ -448,10 +448,8 @@ Response::ResponseCode Server_ProtocolHandler::cmdLogin(const Command_Login &cmd if (cmd.has_password()) { password = QString::fromStdString(cmd.password()); needsHash = true; - } else if (cmd.has_hashed_password()) { - password = QString::fromStdString(cmd.hashed_password()); } else { - return Response::RespContextError; + password = QString::fromStdString(cmd.hashed_password()); } if (userInfo != 0) {