diff options
| author | Simon Rettberg | 2025-09-25 15:20:34 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2025-09-25 15:20:34 +0200 |
| commit | cc74ae97b9f91b38fecb1c24600c3eb7e4717b4d (patch) | |
| tree | 0d752c886ba2f0b159ca2b860e0de452ba254057 /src/webview.cpp | |
| parent | Fix IdP list merging (diff) | |
| download | slxgreeter-cc74ae97b9f91b38fecb1c24600c3eb7e4717b4d.tar.gz slxgreeter-cc74ae97b9f91b38fecb1c24600c3eb7e4717b4d.tar.xz slxgreeter-cc74ae97b9f91b38fecb1c24600c3eb7e4717b4d.zip | |
Diffstat (limited to 'src/webview.cpp')
| -rw-r--r-- | src/webview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index d9a689d..e01fa74 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -282,7 +282,7 @@ void WebView::installJsInjectionScript() const auto& map = Global::getCombinedIdpWhitelist(); QSet<QString> idpList; for (auto it = map.constBegin(); it != map.constEnd(); ++it) { - for (const QString &s : it.value().toString().split(' ')) { + for (const QString &s : it.value()) { idpList.insert(s); } } @@ -380,11 +380,11 @@ void WebView::evaluateAuthDom() for (auto it = idpMap.constBegin(); it != idpMap.constEnd(); ++it) { if (it.key().isEmpty()) { // An "anything goes" list, no restrictions - if (it.value().toStringList().contains(idp)) { + if (it.value().contains(idp)) { ok = true; break; } - } else if (it.value().toStringList().contains(idp)) { + } else if (it.value().contains(idp)) { // IdP in list, so if the entitlements match up, allow ok = true; // Break up key into individual entitlements, make sure the user has them all |
