summaryrefslogtreecommitdiffstats
path: root/src/settings.h
diff options
context:
space:
mode:
authorSimon Rettberg2024-06-19 13:39:47 +0200
committerSimon Rettberg2024-06-19 13:39:47 +0200
commit13441ee8d8dc3f11effb3c5ebca7728ad4ec8e14 (patch)
treefab02c0fec059ef66aa16f599f99340c1117a776 /src/settings.h
parentFix reading UTF8 strings from settings (diff)
downloadslxgreeter-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.h2
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(); }
};