summaryrefslogtreecommitdiffstats
path: root/lib/private/Template
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2024-06-12 11:05:43 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2024-06-12 19:28:57 +0200
commit3b840dfb795b7b3037b4193da451138df297c5c2 (patch)
tree99c36081598c0c53b782be7c76b81364e1370d7b /lib/private/Template
parent02313013ad9094ea0ec52f30672971ab03f4ec15 (diff)
downloadnextcloud-server-3b840dfb795b7b3037b4193da451138df297c5c2.tar.gz
nextcloud-server-3b840dfb795b7b3037b4193da451138df297c5c2.zip
fix(Token): make new scope future compatible
- "password-unconfirmable" is the effective name for 30, but a draft name was backported. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Template')
-rw-r--r--lib/private/Template/JSConfigHelper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php
index d890ac785af..6942fdeebcb 100644
--- a/lib/private/Template/JSConfigHelper.php
+++ b/lib/private/Template/JSConfigHelper.php
@@ -309,6 +309,6 @@ class JSConfigHelper {
return true;
}
$scope = $token->getScopeAsArray();
- return !isset($scope['sso-based-login']) || $scope['sso-based-login'] === false;
+ return !isset($scope['password-unconfirmable']) || $scope['password-unconfirmable'] === false;
}
}