Skip to content

Commit 70a21de

Browse files
authored
Merge pull request #11082 from nextcloud/fix/10584/no_invalidate_token_oauth
Do not invalidate main token on OAuth
2 parents 5767f1c + be2d8cc commit 70a21de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/Controller/ClientFlowLoginController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,10 @@ public function generateAppPassword($stateToken,
366366

367367
$serverPath = $protocol . "://" . $this->request->getServerHost() . $serverPostfix;
368368
$redirectUri = 'nc://login/server:' . $serverPath . '&user:' . urlencode($loginName) . '&password:' . urlencode($token);
369-
}
370369

371-
// Clear the token from the login here
372-
$this->tokenProvider->invalidateToken($sessionId);
370+
// Clear the token from the login here
371+
$this->tokenProvider->invalidateToken($sessionId);
372+
}
373373

374374
return new Http\RedirectResponse($redirectUri);
375375
}

0 commit comments

Comments
 (0)