mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +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