changeset 3804:6f3dbd8430db

OpenID RP: make compatible with 2.2 series of python-openid
author Johannes Berg <johannes AT sipsolutions DOT net>
date Mon, 30 Jun 2008 16:07:16 +0200
parents 5afc0a9e3fc3
children 191ac1cf5f61 a3cf0aa7bf97
files MoinMoin/auth/openidrp.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/openidrp.py	Wed Jun 25 21:01:58 2008 +0200
+++ b/MoinMoin/auth/openidrp.py	Mon Jun 30 16:07:16 2008 +0200
@@ -135,9 +135,9 @@
         query = {}
         for key in request.form:
             query[key] = request.form[key][0]
-        return_to = get_multistage_continuation_url(request, self.name,
-                                                    {'oidstage': '1'})
-        info = oidconsumer.complete(query, return_to=return_to)
+        current_url = get_multistage_continuation_url(request, self.name,
+                                                      {'oidstage': '1'})
+        info = oidconsumer.complete(query, current_url)
         if info.status == consumer.FAILURE:
             return CancelLogin(_('OpenID error: %s.') % info.message)
         elif info.status == consumer.CANCEL: