[feat] use fix random password otherwise user regenerates one

This commit is contained in:
dijunkun
2024-08-28 10:28:11 +08:00
parent 93d7f71cf2
commit d8297ebb74
2 changed files with 4 additions and 1 deletions

View File

@@ -154,7 +154,7 @@ int Render::LocalWindow() {
ImGui::InputTextWithHint(
"##server_pwd",
localization::max_password_len[localization_language_index_].c_str(),
(char *)random_password_.c_str(), random_password_.length() + 1,
(char *)password_saved_.c_str(), password_saved_.length() + 1,
show_password_ ? ImGuiInputTextFlags_CharsNoBlank
: ImGuiInputTextFlags_CharsNoBlank |
ImGuiInputTextFlags_Password);