ce019544af5459e5d1074720e5368a0b5dcd2d2a
angie
  Thu Jun 9 11:36:00 2016 -0700
Revert "New random-token method for login (HT Max & Galt): instead of requiring a new table gbMemberToken, use autoUpgrade to add a new column (keyList) to gbMembers that contains a list of long random keys, analogous to userDb and sessionDb's sessionKey (see cartDb.c).  The token cookie now includes both gbMembers.idx (for fast lookup) and the long random key, similar to the hguid cookie and hgsid CGI param.  keyList is a list in order to support user login on multiple web clients.  refs #17327 #17336 note-11"

This reverts commit ecd6e5bc9b85bcbafb08da0c1dae876b284ba69c.

diff --git src/hg/lib/gbMemberToken.sql src/hg/lib/gbMemberToken.sql
new file mode 100644
index 0000000..d9a20cd
--- /dev/null
+++ src/hg/lib/gbMemberToken.sql
@@ -0,0 +1,14 @@
+# gbMemberToken.sql was originally generated by the autoSql program, which also 
+# generated gbMemberToken.c and gbMemberToken.h.  This creates the database representation of
+# an object which can be loaded and saved from RAM in a fairly 
+# automatic way.
+
+#Maps random token to values of gbMembers.userName
+CREATE TABLE gbMemberToken (
+    token int unsigned not null,	# Random nonzero number
+    userName varchar(255) not null,	# Name used to login in hgLogin
+    createTime varchar(255) not null,	# Date and time at which token was created
+    validUntil varchar(255) not null,	# Date and time until which token will be removed from table, NULL: do not remove
+              #Indices
+    PRIMARY KEY(token)
+);