mirror of https://github.com/jumpserver/jumpserver
[Update] 自动生成秘钥去掉密码
parent
2da87151ed
commit
ebc1b4975a
|
@ -112,7 +112,7 @@ class AssetUser(models.Model):
|
|||
def auto_gen_auth(self):
|
||||
password = str(uuid.uuid4())
|
||||
private_key, public_key = ssh_key_gen(
|
||||
username=self.username, password=password
|
||||
username=self.username
|
||||
)
|
||||
self.set_auth(password=password,
|
||||
private_key=private_key,
|
||||
|
|
Loading…
Reference in New Issue