mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-16 16:01:35 +00:00
perf: 切割一次就可以了
This commit is contained in:
parent
755fa8efa8
commit
ab34b9906e
@ -171,7 +171,7 @@ class PrepareRequestMixin:
|
||||
valid_attrs = ['username', 'name', 'email', 'comment', 'phone']
|
||||
|
||||
for attr, value in attrs.items():
|
||||
attr = attr.rsplit('/')[-1]
|
||||
attr = attr.rsplit('/', 1)[-1]
|
||||
if attr not in valid_attrs:
|
||||
continue
|
||||
user_attrs[attr] = self.value_to_str(value)
|
||||
|
Loading…
Reference in New Issue
Block a user