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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -448,10 +448,8 @@ Response::ResponseCode Server_ProtocolHandler::cmdLogin(const Command_Login &cmd
if (cmd.has_password()) { if (cmd.has_password()) {
password = QString::fromStdString(cmd.password()); password = QString::fromStdString(cmd.password());
needsHash = true; needsHash = true;
} else if (cmd.has_hashed_password()) {
password = QString::fromStdString(cmd.hashed_password());
} else { } else {
return Response::RespContextError; password = QString::fromStdString(cmd.hashed_password());
} }
if (userInfo != 0) { if (userInfo != 0) {