auth fixes

This commit is contained in:
knst-kotov
2021-07-14 14:45:31 +00:00
parent 6c9337be4c
commit d304362684
5 changed files with 38 additions and 17 deletions

View File

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