Switch to url_for :)

This commit is contained in:
Armin Ronacher 2010-05-16 14:33:32 +02:00
parent 1c5db9ab80
commit 9e5de5538f
10 changed files with 11 additions and 11 deletions

View file

@ -32,7 +32,7 @@ def logout():
def login():
if g.user is not None:
return redirect(url_for('general.index'))
if reassign and 'cancel' in request.form:
if 'cancel' in request.form:
flash(u'Cancelled. The OpenID was not changed.')
return redirect(oid.get_next_url())
openid = request.values.get('openid')