Don't store unnecessary info in the token
authorQuentin Smith <quentin@mit.edu>
Sun, 7 Oct 2007 21:34:22 +0000 (17:34 -0400)
committerQuentin Smith <quentin@mit.edu>
Sun, 7 Oct 2007 21:34:22 +0000 (17:34 -0400)
svn path=/trunk/web/; revision=120

templates/main.py

index 2c6430d..a8e59b8 100755 (executable)
@@ -284,7 +284,7 @@ def vnc(user, fields):
 
     data = {}
     data["user"] = user
-    data["machine"]=machine
+    data["machine"]=machine.name
     data["expires"]=time.time()+(5*60)
     pickledData = cPickle.dumps(data)
     m = hmac.new(TOKEN_KEY, digestmod=sha)