This commit is contained in:
codl 2017-08-29 16:31:43 +02:00
parent 1a2fda9c86
commit e07e052d7d
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ def mastodon_login_step2(instance_url):
code = request.args.get('code', None) code = request.args.get('code', None)
app = MastodonApp.query.get(instance_url) app = MastodonApp.query.get(instance_url)
if not code or not app: if not code or not app:
return redirect('mastodon_login_step1', error=True) return redirect(url_for('mastodon_login_step1', error=True))
callback = url_for('mastodon_login_step2', callback = url_for('mastodon_login_step2',
instance=instance_url, _external=True) instance=instance_url, _external=True)