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

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);
}