Merge pull request #46088 from nextcloud/backport/46075/stable28

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

View file

@ -200,7 +200,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);
}