This commit is contained in:
Tony 2021-12-13 15:14:37 +03:00
parent a985e800a2
commit 5a47951b66
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ async def send_email(user, text):
token = await EmailAuthenticate.get_email_token(user)
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)
response = requests.post(
MAILGUN_API_URL,

View File

@ -83,5 +83,5 @@ async def oauth_authorize(request):
}
user = Identity.identity_oauth(user_input)
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)