de64528adf2e9ceeedea5d015a268c276d7d2657
chinhli
  Thu Aug 15 11:03:37 2013 -0700
Bug 11547 When creating account realName (from good old wiki days) need to be set even it is not use anymore
diff --git src/hg/hgLogin/hgLogin.c src/hg/hgLogin/hgLogin.c
index 4e65c91..ceb1d7d 100644
--- src/hg/hgLogin/hgLogin.c
+++ src/hg/hgLogin/hgLogin.c
@@ -1032,33 +1032,33 @@
     signupPage(conn);
     return;
     }
 if (password && password2 && !sameString(password, password2))
     {
     freez(&errMsg);
     errMsg = cloneString("Passwords do not match.");
     signupPage(conn);
     return;
     }
 
 /* pass all the checks, OK to create the account now */
 char encPwd[45] = "";
 encryptNewPwd(password, encPwd, sizeof(encPwd));
 sqlSafef(query,sizeof(query), "INSERT INTO gbMembers SET "
-    "userName='%s',password='%s',email='%s', "
+    "userName='%s',realName='%s',password='%s',email='%s', "
     "lastUse=NOW(),accountActivated='N'",
-    user,encPwd,email);
+    user,user,encPwd,email);
 sqlUpdate(conn, query);
 setupNewAccount(conn, email, user);
 /* send out activate code mail, and display the mail confirmation box */
 hPrintf("<h2>%s</h2>", brwName);
 hPrintf(
     "<p align=\"left\">\n"
     "</p>\n"
     "<h3>User %s successfully added.</h3>\n", user);
 cartRemove(cart, "hgLogin_email");
 cartRemove(cart, "hgLogin_email2");
 cartRemove(cart, "hgLogin_userName");
 cartRemove(cart, "user");
 cartRemove(cart, "token");
 returnToURL(150);
 }