a8566f2994a868dfe2521ac7fca7529f75cdfa16 chinhli Thu May 31 09:55:14 2012 -0700 iFinished new hgSession welcome and account info UI change. diff --git src/hg/lib/wikiLink.c src/hg/lib/wikiLink.c index bd227ba..c99ea1f 100644 --- src/hg/lib/wikiLink.c +++ src/hg/lib/wikiLink.c @@ -144,15 +144,34 @@ char *retEnc = encodedHgSessionReturnUrl(hgsid); if (loginSystemEnabled()) { if (! wikiLinkEnabled()) errAbort("wikiLinkUserSignupUrl called when login system is not enabled " "(specified in hg.conf)."); safef(buf, sizeof(buf), "http://%s/cgi-bin/hgLogin?hgLogin.do.signupPage=1&returnto=%s", wikiLinkHost(), retEnc); } freez(&retEnc); return(cloneString(buf)); } +char *wikiLinkChangePasswordUrl(int hgsid) +/* Return the URL for the user change password page. */ +{ +char buf[2048]; +char *retEnc = encodedHgSessionReturnUrl(hgsid); + +if (loginSystemEnabled()) + { + if (! wikiLinkEnabled()) + errAbort("wikiLinkChangePasswordUrl called when login system is not enabled " + "(specified in hg.conf)."); + safef(buf, sizeof(buf), + "http://%s/cgi-bin/hgLogin?hgLogin.do.changePasswordPage=1&returnto=%s", + wikiLinkHost(), retEnc); + } +freez(&retEnc); +return(cloneString(buf)); +} +