| 23 | } |
| 24 | |
| 25 | void CreateUserDialog::processIntern() |
| 26 | { |
| 27 | AlienImGui::Text("Security information"); |
| 28 | 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 " |
| 29 | "as a SHA-256 hash value in the database."); |
| 30 | AlienImGui::Text("Data privacy policy"); |
| 31 | AlienImGui::HelpMarker("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 " |
| 32 | "the confirmation code. " |
| 33 | "2) A SHA-256 hash value of the email address is stored on the server to verify that it is not yet in use."); |
| 34 | AlienImGui::Separator(); |
| 35 | AlienImGui::Text("Please enter your email address to receive the\nconfirmation code for the new user."); |
| 36 | AlienImGui::Separator(); |
| 37 | AlienImGui::InputText(AlienImGui::InputTextParameters().hint("Email").textWidth(0), _email); |
| 38 | |
| 39 | AlienImGui::Separator(); |
| 40 | |
| 41 | ImGui::BeginDisabled(_email.empty()); |
| 42 | if (AlienImGui::Button("Create user")) { |
| 43 | close(); |
| 44 | |
| 45 | onCreateUser(); |
| 46 | } |
| 47 | ImGui::EndDisabled(); |
| 48 | ImGui::SetItemDefaultFocus(); |
| 49 | |
| 50 | ImGui::SameLine(); |
| 51 | if (AlienImGui::Button("Cancel")) { |
| 52 | close(); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | void CreateUserDialog::onCreateUser() |
| 57 | { |
nothing calls this directly
no test coverage detected