mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-18 06:07:53 +00:00
网域网管取消密码不为空校验
This commit is contained in:
parent
8f3fb60332
commit
e5d3fe696f
@ -63,8 +63,6 @@ class Gateway(BaseUser):
|
|||||||
def test_connective(self, local_port=None):
|
def test_connective(self, local_port=None):
|
||||||
if local_port is None:
|
if local_port is None:
|
||||||
local_port = self.port
|
local_port = self.port
|
||||||
if not self.password:
|
|
||||||
return False, _("Password cannot be empty")
|
|
||||||
|
|
||||||
client = paramiko.SSHClient()
|
client = paramiko.SSHClient()
|
||||||
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||||
|
Loading…
Reference in New Issue
Block a user