fix: 修复openid用户登录时默认邮件后缀使用配置项

pull/8430/head
Jiangjie.Bai 2022-06-15 19:27:51 +08:00 committed by Jiangjie.Bai
parent 0fe221019a
commit 62f5662bd0
1 changed files with 1 additions and 1 deletions

View File

@ -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))