diff options
author | Simon Rettberg | 2024-06-19 13:39:47 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-06-19 13:39:47 +0200 |
commit | 13441ee8d8dc3f11effb3c5ebca7728ad4ec8e14 (patch) | |
tree | fab02c0fec059ef66aa16f599f99340c1117a776 /src/settings.h | |
parent | Fix reading UTF8 strings from settings (diff) | |
download | slxgreeter-13441ee8d8dc3f11effb3c5ebca7728ad4ec8e14.tar.gz slxgreeter-13441ee8d8dc3f11effb3c5ebca7728ad4ec8e14.tar.xz slxgreeter-13441ee8d8dc3f11effb3c5ebca7728ad4ec8e14.zip |
Add allowed-shibboleth-domains config option to inject in website
This will inject a piece of JS code on page load that sets
slxIdpFilter to this value, to be used by the IdP selector to
filter the list.
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h index 4d8f04b..a218e3b 100644 --- a/src/settings.h +++ b/src/settings.h @@ -3,6 +3,7 @@ #include <QSettings> #include <QDir> +#include <QTextCodec> #define CONFIG_FILE "/etc/lightdm/qt-lightdm-greeter.conf" #define CONFIG_FOLDER "/etc/lightdm/qt-lightdm-greeter.conf.d" @@ -59,6 +60,7 @@ public: static QString guestSessionButtonText() { return s_settings->value("guest-session-button-text").toString(); } static QString guestSessionStartText() { return s_settings->value("guest-session-start-text").toString(); } static QString guestSessionStartButtonText() { return s_settings->value("guest-session-start-button-text").toString(); } + static QString allowedShibbolethDomains() { return s_settings->value("allowed-shibboleth-domains").toString(); } static int resetForm() { return s_settings->value("reset-timeout", "30").toInt(); } static int rpcPort() { return s_settings->value("rpc-port", "0").toInt(); } }; |