diff --git a/jumpserver/api.py b/jumpserver/api.py index 646aeeeb2..68a013870 100644 --- a/jumpserver/api.py +++ b/jumpserver/api.py @@ -165,7 +165,7 @@ class PyCrypt(object): self.mode = AES.MODE_CBC @staticmethod - def gen_rand_pass(length, especial=False): + def gen_rand_pass(length=16, especial=False): """ random password 随机生成密码