mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修复生成system user的问题
parent
035dd16b36
commit
947f7d206a
|
@ -106,7 +106,7 @@ class AssetUser(models.Model):
|
||||||
def auto_gen_auth(self):
|
def auto_gen_auth(self):
|
||||||
password = str(uuid.uuid4())
|
password = str(uuid.uuid4())
|
||||||
private_key, public_key = ssh_key_gen(
|
private_key, public_key = ssh_key_gen(
|
||||||
username=self.name, password=password
|
username=self.username, password=password
|
||||||
)
|
)
|
||||||
self.set_auth(password=password,
|
self.set_auth(password=password,
|
||||||
private_key=private_key,
|
private_key=private_key,
|
||||||
|
|
Loading…
Reference in New Issue