auth via email

This commit is contained in:
knst-kotov
2021-08-25 11:31:51 +03:00
parent 3c538d3724
commit 805db9814a
8 changed files with 60 additions and 20 deletions

View File

@@ -64,5 +64,5 @@ async def oauth_authorize(request):
"username" : profile["name"]
}
user = Identity.identity_oauth(user_input)
token = await Authorize.authorize(user, device="pc", auto_delete=False)
token = await Authorize.authorize(user, device="pc")
return PlainTextResponse(token)