diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-06-24 15:21:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 15:21:28 +0200 |
commit | 879eaa7681b83efb1ed7de2ec8abb6ac3c62ccdd (patch) | |
tree | 4449c882c3ca78740c7567e978079c3149745f56 /lib | |
parent | d086f3a2bf1fcc156269e611a9c4f859eac36be8 (diff) | |
parent | 895ed634af5385e44ed81310e1218c47a86c309b (diff) | |
download | nextcloud-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.php | 5 |
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); } |