1. Olemis Lang
  2. bloodhound_openid

Commits

Sebastian Leske  committed 6657dc1 Draft

Pass current URL to oidconsumer.complete. Fixes error message if users cancels verification.

  • Participants
  • Parent commits 25e82a5
  • Branches default

Comments (0)

Files changed (1)

File authopenid/authopenid.py

View file
         # us.  Status is a code indicating the response type. info is
         # either None or a string containing more information about
         # the return type.
-        info = oidconsumer.complete(req.args,req.args['openid.return_to'])
+        current_url = req.abs_href(req.path_info)
+        info = oidconsumer.complete(req.args,current_url)
 
         css_class = 'error'
         if info.status == consumer.FAILURE and info.identity_url: