mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Disable default password check in single player (#14493)
This commit is contained in:
parent
d53ef90a73
commit
08284e420d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user