auth and minor fixes

This commit is contained in:
Igor Lobanov
2022-11-22 04:11:26 +01:00
parent 9215facb75
commit 8963781ca3
9 changed files with 30 additions and 15 deletions

View File

@@ -25,6 +25,8 @@ async def send_auth_email(user, token, lang="ru"):
"h:X-Mailgun-Variables": "{ \"token\": \"%s\" }" % token
}
print('[auth.email] payload: %r' % payload)
# debug
# print('http://localhost:3000/?modal=auth&mode=confirm-email&token=%s' % token)
response = requests.post(
api_url,
auth=("api", MAILGUN_API_KEY),