| 28 | {} |
| 29 | |
| 30 | void NewPasswordDialog::processIntern() |
| 31 | { |
| 32 | AlienImGui::Text("Security information"); |
| 33 | AlienImGui::HelpMarker( |
| 34 | "The data transfer to the server is encrypted via https. On the server side, the password is not stored in cleartext, but as a salted SHA-256 hash " |
| 35 | "value in the database."); |
| 36 | |
| 37 | AlienImGui::Separator(); |
| 38 | |
| 39 | AlienImGui::Text("Please enter a new password and the confirmation code\nsent to your email address."); |
| 40 | AlienImGui::Separator(); |
| 41 | AlienImGui::InputText(AlienImGui::InputTextParameters().hint("New password").password(true).textWidth(0), _newPassword); |
| 42 | AlienImGui::InputText(AlienImGui::InputTextParameters().hint("Code (case sensitive)").textWidth(0), _confirmationCode); |
| 43 | |
| 44 | AlienImGui::Separator(); |
| 45 | |
| 46 | ImGui::BeginDisabled(_confirmationCode.empty()); |
| 47 | if (AlienImGui::Button("OK")) { |
| 48 | close(); |
| 49 | onNewPassword(); |
| 50 | } |
| 51 | ImGui::EndDisabled(); |
| 52 | ImGui::SetItemDefaultFocus(); |
| 53 | |
| 54 | ImGui::SameLine(); |
| 55 | if (AlienImGui::Button("Cancel")) { |
| 56 | close(); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | void NewPasswordDialog::onNewPassword() |
| 61 | { |
nothing calls this directly
no test coverage detected