From 898f2291459ea54db6221605041a26e73093388b Mon Sep 17 00:00:00 2001 From: b3yond Date: Sat, 14 Apr 2018 18:16:05 +0200 Subject: [PATCH] Twitter OAuth dance works now!!1111 wuuuuhhuuuu --- frontend.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend.py b/frontend.py index b858ddd..9ee999a 100755 --- a/frontend.py +++ b/frontend.py @@ -127,8 +127,7 @@ def twitter_callback(user): consumer_secret = config["twitter"]["consumer_secret"] auth = tweepy.OAuthHandler(consumer_key, consumer_secret) request_token = user.get_request_token() - auth.request_token = {"oauth_token": request_token, - "oauth_token_secret": verifier} + auth.request_token = request_token auth.get_access_token(verifier) user.save_twitter_token(auth.access_token, auth.access_token_secret) return bottle.redirect("/settings")