mirror of https://github.com/jumpserver/jumpserver
fix: 修复openid用户登录时默认邮件后缀使用配置项
parent
0fe221019a
commit
62f5662bd0
|
@ -46,7 +46,7 @@ class UserMixin:
|
|||
for field, attr in settings.AUTH_OPENID_USER_ATTR_MAP.items():
|
||||
user_attrs[field] = claims.get(attr, sub)
|
||||
email = user_attrs.get('email', '')
|
||||
email = construct_user_email(user_attrs.get('username'), email, 'jumpserver.openid')
|
||||
email = construct_user_email(user_attrs.get('username'), email)
|
||||
user_attrs.update({'email': email})
|
||||
|
||||
logger.debug(log_prompt.format(user_attrs))
|
||||
|
|
Loading…
Reference in New Issue