mirror of
https://github.com/huashengdun/webssh.git
synced 2026-08-23 14:16:43 +00:00
Reset password to None if privatekey is delivered
This commit is contained in:
@@ -186,6 +186,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
|
||||
pkey = self.get_pkey_obj(
|
||||
privatekey, password, self.privatekey_filename
|
||||
)
|
||||
password = None
|
||||
else:
|
||||
pkey = None
|
||||
args = (hostname, port, username, password, pkey)
|
||||
|
||||
Reference in New Issue
Block a user