mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-22 21:17:30 +00:00
perf: account push no password (#9457)
Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
parent
38921cc5f0
commit
63a4620b19
@ -20,7 +20,8 @@ class SecretGenerator:
|
||||
return private_key
|
||||
|
||||
def generate_password(self):
|
||||
length = int(self.password_rules.get('length', DEFAULT_PASSWORD_RULES['length']))
|
||||
length = int(self.password_rules.get('length', 0))
|
||||
length = length if length else DEFAULT_PASSWORD_RULES['length']
|
||||
return random_string(length, special_char=True)
|
||||
|
||||
def get_secret(self):
|
||||
|
Loading…
Reference in New Issue
Block a user