forked from ticketfrei/ticketfrei
generate url with dedicated function
This commit is contained in:
parent
261496c097
commit
034513718f
|
@ -104,7 +104,7 @@ def login_twitter(user):
|
|||
try:
|
||||
consumer_key = config["twitter"]["consumer_key"]
|
||||
consumer_secret = config["twitter"]["consumer_secret"]
|
||||
callback_url = request.get_header('host') + "/login/twitter/callback"
|
||||
callback_url = url("/login/twitter/callback")
|
||||
auth = tweepy.OAuthHandler(consumer_key, consumer_secret, callback_url)
|
||||
try:
|
||||
redirect_url = auth.get_authorization_url()
|
||||
|
|
Loading…
Reference in a new issue