aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Controller
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2024-06-07 11:25:36 +0200
committerGitHub <noreply@github.com>2024-06-07 11:25:36 +0200
commit98b5cdc43dfd62e1ceaca6b28ab607d66c1c168e (patch)
treed3ddc97b31be6814be82fc5150d6d0c983246475 /apps/settings/lib/Controller
parentef01dc72c1c92bdde6145954fe2a029e90c61e60 (diff)
parentf6d6efef3a26fc5524988cdfba780dce035cd61b (diff)
downloadnextcloud-server-98b5cdc43dfd62e1ceaca6b28ab607d66c1c168e.tar.gz
nextcloud-server-98b5cdc43dfd62e1ceaca6b28ab607d66c1c168e.zip
Merge pull request #43942 from nextcloud/fix/43612/avoid-pwd-confirm-sso
fix(Session): avoid password confirmation on SSO
Diffstat (limited to 'apps/settings/lib/Controller')
-rw-r--r--apps/settings/lib/Controller/AuthSettingsController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings/lib/Controller/AuthSettingsController.php b/apps/settings/lib/Controller/AuthSettingsController.php
index 0e7f522d6eb..83db90fdc32 100644
--- a/apps/settings/lib/Controller/AuthSettingsController.php
+++ b/apps/settings/lib/Controller/AuthSettingsController.php
@@ -217,8 +217,8 @@ class AuthSettingsController extends Controller {
$currentName = $token->getName();
if ($scope !== $token->getScopeAsArray()) {
- $token->setScope(['filesystem' => $scope['filesystem']]);
- $this->publishActivity($scope['filesystem'] ? Provider::APP_TOKEN_FILESYSTEM_GRANTED : Provider::APP_TOKEN_FILESYSTEM_REVOKED, $token->getId(), ['name' => $currentName]);
+ $token->setScope([IToken::SCOPE_FILESYSTEM => $scope[IToken::SCOPE_FILESYSTEM]]);
+ $this->publishActivity($scope[IToken::SCOPE_FILESYSTEM] ? Provider::APP_TOKEN_FILESYSTEM_GRANTED : Provider::APP_TOKEN_FILESYSTEM_REVOKED, $token->getId(), ['name' => $currentName]);
}
if (mb_strlen($name) > 128) {