perf: 兼容不同版本间JumpServer获取的SAML2协议用户属性

pull/7606/head
jiangweidong 2022-02-10 18:01:10 +08:00 committed by 老广
parent 889713f00e
commit 755fa8efa8
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ class PrepareRequestMixin:
valid_attrs = ['username', 'name', 'email', 'comment', 'phone']
for attr, value in attrs.items():
attr = attr.rsplit('/')[-1]
if attr not in valid_attrs:
continue
user_attrs[attr] = self.value_to_str(value)