diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-06-12 11:05:43 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-06-12 19:28:57 +0200 |
commit | 3b840dfb795b7b3037b4193da451138df297c5c2 (patch) | |
tree | 99c36081598c0c53b782be7c76b81364e1370d7b /lib/private/Template | |
parent | 02313013ad9094ea0ec52f30672971ab03f4ec15 (diff) | |
download | nextcloud-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.php | 2 |
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; } } |