mirror of https://github.com/jumpserver/jumpserver
fix: 管理用户输入带密码的秘钥报错
parent
4a1fc0e2ac
commit
7a61a671a2
|
@ -113,7 +113,7 @@ class AuthMixin:
|
||||||
if self.public_key:
|
if self.public_key:
|
||||||
public_key = self.public_key
|
public_key = self.public_key
|
||||||
elif self.private_key:
|
elif self.private_key:
|
||||||
public_key = ssh_pubkey_gen(self.private_key, self.password)
|
public_key = ssh_pubkey_gen(private_key=self.private_key, password=self.password)
|
||||||
else:
|
else:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue