Disable default password check in single player (#14493)

This commit is contained in:
src-tinkerer 2024-03-27 21:46:41 +00:00 committed by GitHub
parent d53ef90a73
commit 08284e420d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -261,7 +261,7 @@ void Server::handleCommand_Init(NetworkPacket* pkt)
}
} else {
std::string default_password = g_settings->get("default_password");
if (default_password.length() == 0) {
if (isSingleplayer() || default_password.length() == 0) {
auth_mechs |= AUTH_MECHANISM_FIRST_SRP;
} else {
// Take care of default passwords.