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

Method processIntern

source/Gui/ResetPasswordDialog.cpp:21–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void ResetPasswordDialog::processIntern()
22{
23 AlienImGui::Text("Security information");
24 AlienImGui::HelpMarker("The data transfer to the server is encrypted via https. On the server side, the email address is not stored in cleartext, but "
25 "as a SHA-256 hash value in the database.");
26 AlienImGui::Text("Data privacy policy");
27 AlienImGui::HelpMarker(
28 "The entered e-mail address will not be passed on to third parties and is used only for the following two reasons: 1) To send the confirmation code. "
29 "2) A SHA-256 hash value of the email address is stored on the server to verify that it is not yet in use.");
30 AlienImGui::Separator();
31 AlienImGui::Text("Please enter your email address to receive the\nconfirmation code to reset the password.");
32 AlienImGui::Separator();
33 AlienImGui::InputText(AlienImGui::InputTextParameters().hint("Email").textWidth(0), _email);
34
35 AlienImGui::Separator();
36
37 ImGui::BeginDisabled(_email.empty());
38 if (AlienImGui::Button("OK")) {
39 close();
40
41 onResetPassword();
42 }
43 ImGui::EndDisabled();
44 ImGui::SetItemDefaultFocus();
45
46 ImGui::SameLine();
47 if (AlienImGui::Button("Cancel")) {
48 close();
49 }
50}
51
52void ResetPasswordDialog::onResetPassword()
53{

Callers

nothing calls this directly

Calls 1

InputTextParametersClass · 0.85

Tested by

no test coverage detected