Do not show password_confirm field in the output when registering

This commit is contained in:
Daniel Butum
2014-08-05 19:40:56 +03:00
parent c6c0c6e590
commit 28f7a45664
3 changed files with 3 additions and 1 deletions

View File

@@ -217,7 +217,7 @@ namespace Online
// List of strings whose values should not be printed. "" is the
// end indicator.
static std::string dont_print[] = { "&password=", "&token=", "&current=",
"&new1=", "&new2=", ""};
"&new1=", "&new2=", "&password_confirm=", ""};
unsigned int j = 0;
while (dont_print[j].size() > 0)
{

View File

@@ -78,6 +78,7 @@ EventPropagation RegistrationDialog::processEvent(const std::string& event_sourc
assert(r);
r->acceptTerms();
}
// If it's not accept, it's cancel - anyway, close dialog
ModalDialog::dismiss();
return EVENT_BLOCK;

View File

@@ -129,6 +129,7 @@ void RegisterScreen::makeEntryFieldsVisible(bool online)
getWidget<LabelWidget>("label_online")->setVisible(false);
online = false;
}
getWidget<TextBoxWidget>("username")->setVisible(online);
getWidget<LabelWidget >("label_username")->setVisible(online);
getWidget<TextBoxWidget>("password")->setVisible(online);