mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Add setting to disable confirmation on new player registration (#8102)
This commit is contained in:
parent
15110864c8
commit
9126e1791d
3 changed files with 7 additions and 1 deletions
|
@ -98,7 +98,8 @@ void Client::handleCommand_Hello(NetworkPacket* pkt)
|
|||
// Authenticate using that method, or abort if there wasn't any method found
|
||||
if (chosen_auth_mechanism != AUTH_MECHANISM_NONE) {
|
||||
if (chosen_auth_mechanism == AUTH_MECHANISM_FIRST_SRP
|
||||
&& !m_simple_singleplayer_mode) {
|
||||
&& !m_simple_singleplayer_mode
|
||||
&& g_settings->getBool("enable_register_confirmation")) {
|
||||
promptConfirmRegistration(chosen_auth_mechanism);
|
||||
} else {
|
||||
startAuth(chosen_auth_mechanism);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue