mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 19:49:38 -04:00
Merge pull request #46075 from nextcloud/backport/46071/stable29
[stable29] fix(Token): add FILESYSTEM scope with SCOPE_SKIP_PASSWORD_VALIDATION
This commit is contained in:
commit
69561004c7
1 changed files with 4 additions and 1 deletions
|
|
@ -202,7 +202,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