fixed config key error

This commit is contained in:
b3yond 2018-04-14 16:34:02 +02:00
parent abad0baa58
commit f57568b4dc

View file

@ -102,8 +102,8 @@ def login_twitter(user):
:return: redirect to twitter. :return: redirect to twitter.
""" """
try: try:
consumer_key = config["tapp"]["consumer_key"] consumer_key = config["twitter"]["consumer_key"]
consumer_secret = config["tapp"]["consumer_secret"] consumer_secret = config["twitter"]["consumer_secret"]
callback_url = request.get_header('host') + "/login/twitter/callback" callback_url = request.get_header('host') + "/login/twitter/callback"
auth = tweepy.OAuthHandler(consumer_key, consumer_secret, callback_url) auth = tweepy.OAuthHandler(consumer_key, consumer_secret, callback_url)
try: try: