bde796b26325a6444222f693b5e0374a07de1dc9 lrnassar Wed Oct 29 15:35:11 2025 -0700 Adding a link to the docs page for the CAPTCHA on hgHubConnect. No RM. diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c index 92148601e69..a1a3d73f855 100644 --- src/hg/hgHubConnect/hgHubConnect.c +++ src/hg/hgHubConnect/hgHubConnect.c @@ -436,42 +436,42 @@ puts("
"); puts("

API key

"); char *userName = wikiLinkUserName(); char *userId = wikiLinkUserId(); if (userName==NULL || userId==NULL) { char *hgsid = cartSessionId(cart); char *loginUrl = wikiLinkUserLoginUrlReturning(hgsid, wikiLinkEncodeReturnUrl(hgsid, "hgHubConnect", "#dev")); printf("
You are not logged in. Please Login now, then this page will show the API key.
", loginUrl); } else { char *existingKey = getApiKey(userName); if (existingKey) { - puts("
You have already generated an API key. If you would like to generate a new key (which revokes old keys), click 'Generate key'. To use your API key with Hubtools, copy and paste the below key to your ~/.hubtools.conf file. This is not necessary for URL use to bypass the CAPTCHA.

"); + puts("
You have already generated an API key. If you would like to generate a new key (which revokes old keys), click 'Generate key'. To use your API key with Hubtools, copy and paste the below key to your ~/.hubtools.conf file. This is not necessary for URL use to bypass the CAPTCHA.

"); puts("
"); printf("%s\n", existingKey); puts("
"); puts("
"); puts("
Generate an API key
"); } else { - puts("
Generate an API key to bypass the CAPTCHA or use the hubtools up command"); + puts("
Generate an API key to bypass the CAPTCHA or use the hubtools up command"); puts("
"); - printf("
To use your API key with hubtools, create a file ~/.hubtools.conf and add the key. This is not necessary for URL use to bypass the CAPTCHA.

\n", existingKey != NULL ? "block" : "none"); + printf("
To use your API key with hubtools, create a file ~/.hubtools.conf and add the key. This is not necessary for URL use to bypass the CAPTCHA.

\n", existingKey != NULL ? "block" : "none"); puts("
"); puts("
"); } printf("
\nTo revoke any API keys associated with your account, click the revoke button: \n
", existingKey != NULL ? "block" : "none"); // add the event handlers for clicking the generate/revoke buttons jsInlineF("" "document.getElementById('generateApiKey').addEventListener('click', generateApiKey);\n" "document.getElementById('revokeApiKeys').addEventListener('click', revokeApiKeys);\n" ); } puts("
"); // tabSection apiKey } void hgHubConnectDeveloperMode()