716acb7dabc447ddf157ec96ad615a195b4df3d2
chinhli
Fri Apr 6 15:59:16 2012 -0700
Finished hgLogin UI
diff --git src/hg/hgLogin/hgLogin.c src/hg/hgLogin/hgLogin.c
index 57568f9..636bc31 100644
--- src/hg/hgLogin/hgLogin.c
+++ src/hg/hgLogin/hgLogin.c
@@ -534,53 +534,82 @@
hPrintf(
"Click here to return.
\n"
);
}
/* ----- account login/display functions ---- */
void displayLoginPage(struct sqlConnection *conn)
/* draw the account login page */
{
-char *username = cartUsualString(cart, "hgLogin_userName", "");
+// char *username = cartUsualString(cart, "hgLogin_userName", "");
/* for password security, use cgi hash instead of cart */
-char *password = cgiUsualString("hgLogin_password", "");
+// char *password = cgiUsualString("hgLogin_password", "");
+
hPrintf(
+"
" -"
" +"\n" +); +printf( +""
+"Signing in enables you to save current settings into a "
+"named session, and then restore settings from the session later.
"
+"If you wish, you can share named sessions with other users. "
+"
" "
" "" "\n" ); hPrintf( "\n" "" "\n", userID, userName,userID); hPrintf( "" -); +,hgLoginHost); } void displayLogoutSuccess() /* display logout success msg, and reset cookie */ { +char *hgLoginHost = hgLoginLinkHost(); + hPrintf( "" "
" "" "\n" ); hPrintf( "\n" ); /* return to session */ /*******************************/ hPrintf( "" -); +,hgLoginHost); /****************************/ } void displayUserInfo(struct sqlConnection *conn) /* display user account info */ { struct sqlResult *sr; char **row; char query[256]; char *user = cartUsualString(cart, "hgLogin_user", ""); /*************************************/ if (sameString(user,""))