[Update] 自动生成秘钥去掉密码

pull/1319/head
ibuler 2018-05-11 18:38:26 +08:00
parent 2da87151ed
commit ebc1b4975a
1 changed files with 1 additions and 1 deletions

View File

@ -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,