projects
/
pithos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix 'next' handling.
[pithos]
/
pithos
/
aai
/
functions.py
diff --git
a/pithos/aai/functions.py
b/pithos/aai/functions.py
index
52b0c33
..
72d4383
100644
(file)
--- a/
pithos/aai/functions.py
+++ b/
pithos/aai/functions.py
@@
-74,8
+74,8
@@
def login(request):
# TODO: Avoid redirect loops.
if '?' in next:
next = next[:next.find('?')]
# 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:
response = HttpResponse()
if not next: