2004-09-21 | paulb | raw files shortlog changelog graph | [project @ 2004-09-21 14:44:14 by paulb] Changed the deconstruction of the authentication token to be slightly more robust (although this was only an issue when Zope cookie values were not being converted back from URL-encoded representations). | |
WebStack/Resources/LoginRedirect.py (file) |
1.1 --- a/WebStack/Resources/LoginRedirect.py Tue Sep 21 14:43:19 2004 +0000 1.2 +++ b/WebStack/Resources/LoginRedirect.py Tue Sep 21 14:44:14 2004 +0000 1.3 @@ -146,7 +146,7 @@ 1.4 # Test the token from the cookie against a recreated token using the 1.5 # given information. 1.6 1.7 - username, code = cookie.value.split(":") 1.8 + username = cookie.value.split(":")[0] 1.9 if cookie.value == get_token(username, self.secret_key): 1.10 1.11 # Update the transaction with the user details.