mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 10:49:21 -04:00
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:
commit
5bbf100397
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue