commit daa24021672da804d45499837adf8dc743e68e49
parent cb22a30045c259dd6519cdb32842bbb5a11d317c
Author: Sheng <webmaster0115@gmail.com>
Date: Fri, 12 Oct 2018 20:54:39 +0800
Reset password to None if privatekey is delivered
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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)