mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00:00
Mail: Use GUI::PasswordInputDialog to ask for server passwords
This commit is contained in:
parent
1f51b72e6d
commit
de7f1bfd58
1 changed files with 2 additions and 2 deletions
|
@ -11,9 +11,9 @@
|
||||||
#include <LibDesktop/Launcher.h>
|
#include <LibDesktop/Launcher.h>
|
||||||
#include <LibGUI/Action.h>
|
#include <LibGUI/Action.h>
|
||||||
#include <LibGUI/Clipboard.h>
|
#include <LibGUI/Clipboard.h>
|
||||||
#include <LibGUI/InputBox.h>
|
|
||||||
#include <LibGUI/Menu.h>
|
#include <LibGUI/Menu.h>
|
||||||
#include <LibGUI/MessageBox.h>
|
#include <LibGUI/MessageBox.h>
|
||||||
|
#include <LibGUI/PasswordInputDialog.h>
|
||||||
#include <LibGUI/Statusbar.h>
|
#include <LibGUI/Statusbar.h>
|
||||||
#include <LibGUI/TableView.h>
|
#include <LibGUI/TableView.h>
|
||||||
#include <LibGUI/TreeView.h>
|
#include <LibGUI/TreeView.h>
|
||||||
|
@ -120,7 +120,7 @@ bool MailWidget::connect_and_login()
|
||||||
|
|
||||||
auto password = config->read_entry("User", "Password", {});
|
auto password = config->read_entry("User", "Password", {});
|
||||||
while (password.is_empty()) {
|
while (password.is_empty()) {
|
||||||
if (GUI::InputBox::show(window(), password, String::formatted("Enter password for {}:", username), "Login", {}, GUI::InputType::Password) != GUI::InputBox::ExecOK)
|
if (GUI::PasswordInputDialog::show(window(), password, "Login", server, username) != GUI::Dialog::ExecOK)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue