1147e5e78e17c3c47d7e625fe4d80f8f3f88b48b gperez2 Fri Aug 28 13:16:15 2026 -0700 Updating hgLogin's "choose a username" page to inform that a new account is created, refs #37929 diff --git src/hg/hgLogin/hgLogin.c src/hg/hgLogin/hgLogin.c index b570e879194..85904827b20 100644 --- src/hg/hgLogin/hgLogin.c +++ src/hg/hgLogin/hgLogin.c @@ -1927,30 +1927,44 @@ if (isEmpty(provider) || !pendingIdentityValid()) { clearPendingIdentity(); displayLoginPage(conn); return; } char *suggested = cartUsualString(cart, "hgLogin_userName", ""); if (isEmpty(suggested)) suggested = suggestUsername(conn, email, name); char *encSuggested = htmlEncode(suggested); // both go into value="" attributes; escape (XSS) char *encEmail = htmlEncode(email); hPrintf("
A new genome browser account is created for any ORCID sign-in not seen before, " + "because ORCID only shares an ORCID iD, not an email address. So you cannot sign into an " + "existing account using ORCID. Use another sign-in option instead if you don't want to " + "create a new account.
" + "Pick a username for your %s account. You can change the suggested name below.
", + brwName); +else if (sameWord(provider, "cilogon")) + hPrintf("A new genome browser account is created for any CILogon sign-in not seen before. " + "So you cannot sign into an existing account using CILogon this way. Use another sign-in " + "option instead if you don't want to create a new account.
" + "Pick a username for your %s account. You can change the suggested name below.
", + brwName); +else hPrintf("You signed in with %s. Pick a username for your new %s account. " "You can change the suggested name below.
", oauthProviderLabel(provider), brwName); printUsernameNote(); hPrintf("%s", errMsg ? errMsg : ""); hPrintf("