diff --git a/src/online/current_user.cpp b/src/online/current_user.cpp index 8010ae248..f32c4f82f 100644 --- a/src/online/current_user.cpp +++ b/src/online/current_user.cpp @@ -77,10 +77,12 @@ namespace Online{ assert(m_state == US_SIGNED_OUT || m_state == US_GUEST); XMLRequest * request = new XMLRequest(); request->setURL((std::string)UserConfigParams::m_server_multiplayer + "client-user.php"); - request->setParameter("action",std::string("register")); - request->setParameter("username",username); - request->setParameter("password",password); - request->setParameter("password_confirm",password_confirm); + request->setParameter("action", std::string("register")); + request->setParameter("username", username); + request->setParameter("password", password); + request->setParameter("password_confirm", password_confirm); + request->setParameter("email", email); + request->setParameter("terms", std::string("on")); HTTPManager::get()->addRequest(request); return request; } diff --git a/src/states_screens/dialogs/registration_dialog.cpp b/src/states_screens/dialogs/registration_dialog.cpp index 051698426..77f1f2662 100644 --- a/src/states_screens/dialogs/registration_dialog.cpp +++ b/src/states_screens/dialogs/registration_dialog.cpp @@ -125,7 +125,6 @@ void RegistrationDialog::showRegistrationTerms(){ m_info_widget = getWidget("info"); assert(m_info_widget != NULL); - m_info_widget->setText(m_registration_error, false); m_options_widget = getWidget("options"); assert(m_options_widget != NULL);