mirror of https://github.com/jumpserver/jumpserver
perf: 优化截取方法
parent
c5bf4075e7
commit
ca19e45905
|
@ -47,5 +47,5 @@ class SessionCommandSerializer(SimpleSessionCommandSerializer):
|
|||
|
||||
def validate_system_user(self, value):
|
||||
if len(value) > 64:
|
||||
value = pretty_string(value, 32)
|
||||
value = pretty_string(value, 64)
|
||||
return value
|
||||
|
|
Loading…
Reference in New Issue