|
|
@ -422,6 +422,7 @@ OptionsDialog::OptionsDialog(QWidget *parent) |
|
|
|
connect(m_ui->checkBypassAuthSubnetWhitelist, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkBypassAuthSubnetWhitelist, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkBypassAuthSubnetWhitelist, &QAbstractButton::toggled, m_ui->IPSubnetWhitelistButton, &QPushButton::setEnabled); |
|
|
|
connect(m_ui->checkBypassAuthSubnetWhitelist, &QAbstractButton::toggled, m_ui->IPSubnetWhitelistButton, &QPushButton::setEnabled); |
|
|
|
connect(m_ui->spinBanCounter, qSpinBoxValueChanged, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->spinBanCounter, qSpinBoxValueChanged, this, &ThisType::enableApplyButton); |
|
|
|
|
|
|
|
connect(m_ui->spinBanDuration, qSpinBoxValueChanged, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->spinSessionTimeout, qSpinBoxValueChanged, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->spinSessionTimeout, qSpinBoxValueChanged, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkClickjacking, &QCheckBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkClickjacking, &QCheckBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkCSRFProtection, &QCheckBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkCSRFProtection, &QCheckBox::toggled, this, &ThisType::enableApplyButton); |
|
|
@ -772,6 +773,7 @@ void OptionsDialog::saveOptions() |
|
|
|
pref->setWebUIHttpsCertificatePath(m_ui->textWebUIHttpsCert->selectedPath()); |
|
|
|
pref->setWebUIHttpsCertificatePath(m_ui->textWebUIHttpsCert->selectedPath()); |
|
|
|
pref->setWebUIHttpsKeyPath(m_ui->textWebUIHttpsKey->selectedPath()); |
|
|
|
pref->setWebUIHttpsKeyPath(m_ui->textWebUIHttpsKey->selectedPath()); |
|
|
|
pref->setWebUIMaxAuthFailCount(m_ui->spinBanCounter->value()); |
|
|
|
pref->setWebUIMaxAuthFailCount(m_ui->spinBanCounter->value()); |
|
|
|
|
|
|
|
pref->setWebUIBanDuration(std::chrono::seconds {m_ui->spinBanDuration->value()}); |
|
|
|
pref->setWebUISessionTimeout(m_ui->spinSessionTimeout->value()); |
|
|
|
pref->setWebUISessionTimeout(m_ui->spinSessionTimeout->value()); |
|
|
|
// Authentication
|
|
|
|
// Authentication
|
|
|
|
pref->setWebUiUsername(webUiUsername()); |
|
|
|
pref->setWebUiUsername(webUiUsername()); |
|
|
@ -1156,6 +1158,7 @@ void OptionsDialog::loadOptions() |
|
|
|
m_ui->checkBypassAuthSubnetWhitelist->setChecked(pref->isWebUiAuthSubnetWhitelistEnabled()); |
|
|
|
m_ui->checkBypassAuthSubnetWhitelist->setChecked(pref->isWebUiAuthSubnetWhitelistEnabled()); |
|
|
|
m_ui->IPSubnetWhitelistButton->setEnabled(m_ui->checkBypassAuthSubnetWhitelist->isChecked()); |
|
|
|
m_ui->IPSubnetWhitelistButton->setEnabled(m_ui->checkBypassAuthSubnetWhitelist->isChecked()); |
|
|
|
m_ui->spinBanCounter->setValue(pref->getWebUIMaxAuthFailCount()); |
|
|
|
m_ui->spinBanCounter->setValue(pref->getWebUIMaxAuthFailCount()); |
|
|
|
|
|
|
|
m_ui->spinBanDuration->setValue(pref->getWebUIBanDuration().count()); |
|
|
|
m_ui->spinSessionTimeout->setValue(pref->getWebUISessionTimeout()); |
|
|
|
m_ui->spinSessionTimeout->setValue(pref->getWebUISessionTimeout()); |
|
|
|
|
|
|
|
|
|
|
|
// Security
|
|
|
|
// Security
|
|
|
|