mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add register dialog to separate login/register (#12185)
New users find Minetest's account system confusing. This change moves username/password to a new dialog, with login and register buttons added to the Join Game tab. The old registration confirmation dialog is removed in favour of the new dialog. Fixes #8138
This commit is contained in:
parent
21323ef1ff
commit
03d86ea0b4
18 changed files with 232 additions and 402 deletions
|
@ -139,6 +139,14 @@ int ModApiMainMenu::l_start(lua_State *L)
|
|||
data->password = getTextData(L,"password");
|
||||
data->address = getTextData(L,"address");
|
||||
data->port = getTextData(L,"port");
|
||||
|
||||
const auto val = getTextData(L, "allow_login_or_register");
|
||||
if (val == "login")
|
||||
data->allow_login_or_register = ELoginRegister::Login;
|
||||
else if (val == "register")
|
||||
data->allow_login_or_register = ELoginRegister::Register;
|
||||
else
|
||||
data->allow_login_or_register = ELoginRegister::Any;
|
||||
}
|
||||
data->serverdescription = getTextData(L,"serverdescription");
|
||||
data->servername = getTextData(L,"servername");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue