Merge pull request #11082 from nextcloud/fix/10584/no_invalidate_token_oauth

Do not invalidate main token on OAuth
This commit is contained in:
Roeland Jago Douma 2018-09-06 13:14:26 +02:00 committed by GitHub
commit 70a21de4c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -366,10 +366,10 @@ class ClientFlowLoginController extends Controller {
$serverPath = $protocol . "://" . $this->request->getServerHost() . $serverPostfix;
$redirectUri = 'nc://login/server:' . $serverPath . '&user:' . urlencode($loginName) . '&password:' . urlencode($token);
}
// Clear the token from the login here
$this->tokenProvider->invalidateToken($sessionId);
// Clear the token from the login here
$this->tokenProvider->invalidateToken($sessionId);
}
return new Http\RedirectResponse($redirectUri);
}