From daa24021672da804d45499837adf8dc743e68e49 Mon Sep 17 00:00:00 2001 From: Sheng Date: Fri, 12 Oct 2018 20:54:39 +0800 Subject: [PATCH] Reset password to None if privatekey is delivered --- webssh/handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/webssh/handler.py b/webssh/handler.py index 56775d1..7889311 100644 --- a/webssh/handler.py +++ b/webssh/handler.py @@ -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)