mirror of https://github.com/jumpserver/jumpserver
Infer User.name from OpenID UserInfo.name (#3674)
Signed-off-by: YanzheL <lee.yanzhe@yanzhe.org>pull/3679/head
parent
b227d9cdc1
commit
29730757b8
|
@ -160,7 +160,8 @@ class Client(object):
|
|||
defaults={
|
||||
'email': userinfo.get('email', ''),
|
||||
'first_name': userinfo.get('given_name', ''),
|
||||
'last_name': userinfo.get('family_name', '')
|
||||
'last_name': userinfo.get('family_name', ''),
|
||||
'name': userinfo.get('name', '')
|
||||
}
|
||||
)
|
||||
oidt_profile = OpenIDTokenProfile(
|
||||
|
|
Loading…
Reference in New Issue