Merge pull request #46086 from nextcloud/backport/46075/stable26

[stable26] fix(Token): add FILESYSTEM scope with SCOPE_SKIP_PASSWORD_VALIDATION
This commit is contained in:
Arthur Schiwon 2024-06-25 12:51:30 +02:00 committed by GitHub
commit 5bbf100397
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -197,7 +197,10 @@ class OC_User {
if (empty($password)) {
$tokenProvider = \OC::$server->get(IProvider::class);
$token = $tokenProvider->getToken($userSession->getSession()->getId());
$token->setScope(['password-unconfirmable' => true]);
$token->setScope([
'password-unconfirmable' => true,
'filesystem' => true,
]);
$tokenProvider->updateToken($token);
}