Skip to content

Commit

Permalink
Fix typo-bug in flask-fas-openid.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Apr 3, 2013
1 parent 649a746 commit dba632f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_fas_openid.py
Expand Up @@ -126,8 +126,8 @@ def login(self, username=None, password=None, return_url=None, cancel_url=None):
:raises: Might raise an redirect to the OpenID endpoint
"""
if return_url is None:
if 'next' in args.values:
return_url = args.values['next']
if 'next' in flask.request.args.values:
return_url = flask.request.args.values['next']
else:
return_url = flask.request.url
oidconsumer = consumer.Consumer(flask.session, None)
Expand Down

0 comments on commit dba632f

Please sign in to comment.