Do not show password_confirm field in the output when registering
This commit is contained in:
@@ -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=", "¤t=",
|
||||
"&new1=", "&new2=", ""};
|
||||
"&new1=", "&new2=", "&password_confirm=", ""};
|
||||
unsigned int j = 0;
|
||||
while (dont_print[j].size() > 0)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user