mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Send password on reconnect.
This commit is contained in:
parent
90322d2846
commit
cb050c3208
1 changed files with 2 additions and 0 deletions
|
@ -746,6 +746,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
||||||
|
|
||||||
private boolean performConnect() {
|
private boolean performConnect() {
|
||||||
String userName = prefs.get("userName", "");
|
String userName = prefs.get("userName", "");
|
||||||
|
String password = prefs.get("password", "");
|
||||||
String server = prefs.get("serverAddress", "");
|
String server = prefs.get("serverAddress", "");
|
||||||
int port = Integer.parseInt(prefs.get("serverPort", ""));
|
int port = Integer.parseInt(prefs.get("serverPort", ""));
|
||||||
String proxyServer = prefs.get("proxyAddress", "");
|
String proxyServer = prefs.get("proxyAddress", "");
|
||||||
|
@ -757,6 +758,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
||||||
setCursor(new Cursor(Cursor.WAIT_CURSOR));
|
setCursor(new Cursor(Cursor.WAIT_CURSOR));
|
||||||
Connection connection = new Connection();
|
Connection connection = new Connection();
|
||||||
connection.setUsername(userName);
|
connection.setUsername(userName);
|
||||||
|
connection.setPassword(password);
|
||||||
connection.setHost(server);
|
connection.setHost(server);
|
||||||
connection.setPort(port);
|
connection.setPort(port);
|
||||||
connection.setProxyType(proxyType);
|
connection.setProxyType(proxyType);
|
||||||
|
|
Loading…
Reference in a new issue