aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2024-06-24 15:21:28 +0200
committerGitHub <noreply@github.com>2024-06-24 15:21:28 +0200
commit879eaa7681b83efb1ed7de2ec8abb6ac3c62ccdd (patch)
tree4449c882c3ca78740c7567e978079c3149745f56 /lib
parentd086f3a2bf1fcc156269e611a9c4f859eac36be8 (diff)
parent895ed634af5385e44ed81310e1218c47a86c309b (diff)
downloadnextcloud-server-879eaa7681b83efb1ed7de2ec8abb6ac3c62ccdd.tar.gz
nextcloud-server-879eaa7681b83efb1ed7de2ec8abb6ac3c62ccdd.zip
Merge pull request #46071 from nextcloud/fix/46070/scope-error
fix(Token): add FILESYSTEM scope with SCOPE_SKIP_PASSWORD_VALIDATION
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/OC_User.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_User.php b/lib/private/legacy/OC_User.php
index f9f751f7b14..d2978f6ad21 100644
--- a/lib/private/legacy/OC_User.php
+++ b/lib/private/legacy/OC_User.php
@@ -172,7 +172,10 @@ class OC_User {
if (empty($password)) {
$tokenProvider = \OC::$server->get(IProvider::class);
$token = $tokenProvider->getToken($userSession->getSession()->getId());
- $token->setScope([IToken::SCOPE_SKIP_PASSWORD_VALIDATION => true]);
+ $token->setScope([
+ IToken::SCOPE_SKIP_PASSWORD_VALIDATION => true,
+ IToken::SCOPE_FILESYSTEM => true,
+ ]);
$tokenProvider->updateToken($token);
}