mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-03 08:25:04 +00:00
fix 随机密码默认长度
This commit is contained in:
@@ -165,7 +165,7 @@ class PyCrypt(object):
|
|||||||
self.mode = AES.MODE_CBC
|
self.mode = AES.MODE_CBC
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def gen_rand_pass(length, especial=False):
|
def gen_rand_pass(length=16, especial=False):
|
||||||
"""
|
"""
|
||||||
random password
|
random password
|
||||||
随机生成密码
|
随机生成密码
|
||||||
|
Reference in New Issue
Block a user