fixurl
This commit is contained in:
parent
a985e800a2
commit
5a47951b66
|
@ -23,7 +23,7 @@ async def send_email(user, text):
|
||||||
token = await EmailAuthenticate.get_email_token(user)
|
token = await EmailAuthenticate.get_email_token(user)
|
||||||
|
|
||||||
to = "%s <%s>" % (user.username, user.email)
|
to = "%s <%s>" % (user.username, user.email)
|
||||||
auth_url_with_token = "%s?token=%s" % (AUTH_URL, token)
|
auth_url_with_token = "%s/%s" % (AUTH_URL, token)
|
||||||
text = text % (auth_url_with_token)
|
text = text % (auth_url_with_token)
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
MAILGUN_API_URL,
|
MAILGUN_API_URL,
|
||||||
|
|
|
@ -83,5 +83,5 @@ async def oauth_authorize(request):
|
||||||
}
|
}
|
||||||
user = Identity.identity_oauth(user_input)
|
user = Identity.identity_oauth(user_input)
|
||||||
token = await Authorize.authorize(user, device="pc")
|
token = await Authorize.authorize(user, device="pc")
|
||||||
redirect_uri = "%s?token=%s" % (OAUTH_CALLBACK_URL, quote_plus(token))
|
redirect_uri = "%s/%s" % (OAUTH_CALLBACK_URL, quote_plus(token))
|
||||||
return RedirectResponse(url = redirect_uri)
|
return RedirectResponse(url = redirect_uri)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user