3d7f8e49ea48a5c6e101ad257731b22cba96288f chinhli Mon May 7 15:43:28 2012 -0700 Fixed the activation code. diff --git src/hg/hgLogin/hgLogin.c src/hg/hgLogin/hgLogin.c index e4862ec..93df91f 100644 --- src/hg/hgLogin/hgLogin.c +++ src/hg/hgLogin/hgLogin.c @@ -28,32 +28,38 @@ char *excludeVars[] = { "submit", "Submit", "debug", "fixMembers", "update", "hgLogin_password", "hgLogin_password2", "hgLogin_newPassword1", "hgLogin_newPassword2", NULL }; /* The excludeVars are not saved to the cart. (We also exclude * any variables that start "near.do.") */ /* ---- Global variables. ---- */ struct cart *cart; /* This holds cgi and other variables between clicks. */ char *database; /* Name of genome database - hg15, mm3, or the like. */ struct hash *oldCart; /* Old cart hash. */ char *errMsg; /* Error message to show user when form data rejected */ /* -------- utilities functions --- */ +boolean tokenExpired(char *dateTime) +/* Is token expired? */ +{ + return FALSE; +} + void returnToURL(int nSec) -/* delay for N micro seconds then go back to hgSession page */ +/* delay for N micro seconds then return to the URL */ { char *returnURL = cartUsualString(cart, "returnto", ""); char *hgLoginHost = wikiLinkHost(); char returnTo[512]; if (!returnURL || sameString(returnURL,"")) safef(returnTo, sizeof(returnTo), "http://%s/cgi-bin/hgSession?hgS_doMainPage=1", hgLoginHost); else safef(returnTo, sizeof(returnTo), returnURL); int delay=nSec*1000; hPrintf( "