Redirect to browse index after oauth.

This commit is contained in:
Edward Betts 2019-09-27 14:25:27 +01:00
parent 541443df02
commit f7f29ad1fb

2
app.py
View file

@ -218,7 +218,7 @@ def oauth_callback():
session['owner_key'] = oauth_tokens.get('oauth_token') session['owner_key'] = oauth_tokens.get('oauth_token')
session['owner_secret'] = oauth_tokens.get('oauth_token_secret') session['owner_secret'] = oauth_tokens.get('oauth_token_secret')
return redirect(url_for('show_user')) return redirect(url_for('browse_index'))
def get_username(): def get_username():
if 'owner_key' not in session: if 'owner_key' not in session: