forked from ticketfrei/ticketfrei
fixed config key error
This commit is contained in:
parent
abad0baa58
commit
f57568b4dc
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue