Fix 'next' handling.
authorAntony Chazapis <chazapis@gmail.com>
Mon, 8 Aug 2011 08:11:58 +0000 (11:11 +0300)
committerAntony Chazapis <chazapis@gmail.com>
Mon, 8 Aug 2011 08:11:58 +0000 (11:11 +0300)
pithos/aai/functions.py

index 52b0c33..72d4383 100644 (file)
@@ -74,8 +74,8 @@ def login(request):
         # TODO: Avoid redirect loops.
         if '?' in next:
             next = next[:next.find('?')]
-        next += '?user=' + urlencode(user.uniq)
-        next += '&' + urlencode(user.auth_token)
+        next += '?' + urlencode({'user': user.uniq,
+                                 'token': user.auth_token})
     
     response = HttpResponse()
     if not next: