mirror of
https://github.com/chenx-dust/EZ4Connect.git
synced 2026-09-20 10:23:33 +08:00
fix: 获取认证方式的端口传递
This commit is contained in:
@@ -71,11 +71,12 @@ AuthInfoWindow::~AuthInfoWindow()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void AuthInfoWindow::fetchAuthInfo(const QString& serverAddress)
|
||||
void AuthInfoWindow::fetchAuthInfo(const QString& serverAddress, int port)
|
||||
{
|
||||
stdoutBuf_.clear();
|
||||
stderrBuf_.clear();
|
||||
proc_->start(Utils::getCorePath(), {"-protocol", "atrust", "-server", serverAddress, "-auth-info"});
|
||||
proc_->start(Utils::getCorePath(),
|
||||
{"-protocol", "atrust", "-server", serverAddress, "-port", QString::number(port), "-auth-info"});
|
||||
if (mainWindow)
|
||||
{
|
||||
mainWindow->addLog("正在获取可用认证的方式...");
|
||||
|
||||
@@ -15,7 +15,7 @@ public:
|
||||
|
||||
~AuthInfoWindow() override;
|
||||
|
||||
void fetchAuthInfo(const QString& serverAddress);
|
||||
void fetchAuthInfo(const QString& serverAddress, int port);
|
||||
|
||||
signals:
|
||||
void finishAuthInfo(const QString& authType, const QString& loginDomain, const QString& loginUrl);
|
||||
|
||||
@@ -158,7 +158,7 @@ SettingWindow::SettingWindow(QWidget *parent, QSettings *inputSettings) :
|
||||
}
|
||||
ui->loginDomainLineEdit->setText(loginDomain);
|
||||
});
|
||||
authInfoWindow->fetchAuthInfo(ui->serverAddressLineEdit->text());
|
||||
authInfoWindow->fetchAuthInfo(ui->serverAddressLineEdit->text(), ui->serverPortSpinBox->value());
|
||||
authInfoWindow->show();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user