mirror of https://github.com/jumpserver/jumpserver
[Update] 修改OpenID用户获取username的问题
parent
52c6244b2b
commit
41cbd3e0f6
|
@ -157,7 +157,7 @@ class Client(object):
|
|||
userinfo = self.get_userinfo(token=token_response['access_token'])
|
||||
with transaction.atomic():
|
||||
name = userinfo.get('name', '')
|
||||
username = userinfo.get('preferred_username', ''),
|
||||
username = userinfo.get('preferred_username', '')
|
||||
email = userinfo.get('email', '')
|
||||
email = construct_user_email(username, email)
|
||||
|
||||
|
|
Loading…
Reference in New Issue