1.1 --- a/WebStack/Resources/OpenIDLogin.py Fri Nov 27 01:58:47 2009 +0100
1.2 +++ b/WebStack/Resources/OpenIDLogin.py Sat Nov 28 22:16:27 2009 +0100
1.3 @@ -63,9 +63,10 @@
1.4 def get_openid_fields(self, trans, claimed_id, local_id, username, return_to, endpoint):
1.5
1.6 # Make an association that can be used in signature verification.
1.7 + # NOTE: Encoding the handle to avoid problems with python-openid.
1.8 # NOTE: Probably need to consider the secret key a bit more.
1.9
1.10 - handle = username + str(time.time())
1.11 + handle = trans.encode_path(username, "utf-8") + str(time.time())
1.12 secret_key = str(random.randint(0, 999999999))
1.13 self.associations[handle] = secret_key
1.14