diff options
author | rubenwardy <rw@rubenwardy.com> | 2022-06-05 16:47:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-05 17:47:38 +0200 |
commit | 03d86ea0b4900cd0394649597d278d465512d629 (patch) | |
tree | d2e5414acea951ea42400b5a87b5ee9a8296a3f3 /src/client/client.h | |
parent | 21323ef1ff02dd714330a8c9d8235f047e1dacf8 (diff) | |
download | dragonfireclient-03d86ea0b4900cd0394649597d278d465512d629.tar.xz |
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
Diffstat (limited to 'src/client/client.h')
-rw-r--r-- | src/client/client.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/client.h b/src/client/client.h index cb1227768..f01510ddb 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -37,6 +37,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "mesh_generator_thread.h" #include "network/address.h" #include "network/peerhandler.h" +#include "gameparams.h" #include <fstream> #define CLIENT_CHAT_MESSAGE_LIMIT_PER_10S 10.0f @@ -127,7 +128,8 @@ public: MtEventManager *event, RenderingEngine *rendering_engine, bool ipv6, - GameUI *game_ui + GameUI *game_ui, + ELoginRegister allow_login_or_register ); ~Client(); @@ -347,8 +349,7 @@ public: u16 getProtoVersion() { return m_proto_ver; } - void confirmRegistration(); - bool m_is_registration_confirmation_state = false; + ELoginRegister m_allow_login_or_register = ELoginRegister::Any; bool m_simple_singleplayer_mode; float mediaReceiveProgress(); @@ -460,7 +461,6 @@ private: static AuthMechanism choseAuthMech(const u32 mechs); void sendInit(const std::string &playerName); - void promptConfirmRegistration(AuthMechanism chosen_auth_mechanism); void startAuth(AuthMechanism chosen_auth_mechanism); void sendDeletedBlocks(std::vector<v3s16> &blocks); void sendGotBlocks(const std::vector<v3s16> &blocks); |