fix regression in local games (#4490)

This commit is contained in:
ebbit1q
2021-12-08 04:54:36 +01:00
committed by GitHub
parent a3d3aaaca8
commit d1a40fd36e

View File

@@ -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) {