MCPcopy Create free account
hub / github.com/chrxh/alien / processIntern

Method processIntern

source/Gui/ActivateUserDialog.cpp:31–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29{}
30
31void ActivateUserDialog::processIntern()
32{
33 AlienImGui::Text("Please enter the confirmation code sent to your email address.");
34 AlienImGui::HelpMarker(
35 "Please check your spam folder if you did not find an email. If you did not receive an email there, try signing up with possibly another "
36 "email address. If this still does not work, please contact info@alien-project.org.");
37 AlienImGui::Separator();
38 AlienImGui::InputText(AlienImGui::InputTextParameters().hint("Code (case sensitive)").textWidth(0), _confirmationCode);
39
40 AlienImGui::Separator();
41
42 ImGui::BeginDisabled(_confirmationCode.empty());
43 if (AlienImGui::Button("OK")) {
44 close();
45 onActivateUser();
46 }
47 ImGui::EndDisabled();
48 ImGui::SetItemDefaultFocus();
49
50 ImGui::SameLine();
51 AlienImGui::VerticalSeparator();
52
53 ImGui::SameLine();
54 if (AlienImGui::Button("Resend")) {
55 CreateUserDialog::get().onCreateUser();
56 }
57
58 ImGui::SameLine();
59 if (AlienImGui::Button("Resend to other email address")) {
60 close();
61 CreateUserDialog::get().open(_userName, _password, _userInfo);
62 }
63
64 ImGui::SameLine();
65 AlienImGui::VerticalSeparator();
66
67 ImGui::SameLine();
68 if (AlienImGui::Button("Cancel")) {
69 close();
70 }
71}
72
73void ActivateUserDialog::onActivateUser()
74{

Callers

nothing calls this directly

Calls 3

InputTextParametersClass · 0.85
onCreateUserMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected