Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webssh
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑天保
webssh
Commits
ce3c70c4
Commit
ce3c70c4
authored
Apr 11, 2018
by
Sheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed get_pkey to get_pkey_obj
parent
24de6477
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
handler.py
handler.py
+2
-2
No files found.
handler.py
View file @
ce3c70c4
...
@@ -60,7 +60,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
...
@@ -60,7 +60,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
else
:
else
:
return
pkey
return
pkey
def
get_pkey
(
self
,
privatekey
,
password
):
def
get_pkey
_obj
(
self
,
privatekey
,
password
):
password
=
password
.
encode
(
'utf-8'
)
if
password
else
None
password
=
password
.
encode
(
'utf-8'
)
if
password
else
None
pkey
=
self
.
get_specific_pkey
(
paramiko
.
RSAKey
,
privatekey
,
password
)
\
pkey
=
self
.
get_specific_pkey
(
paramiko
.
RSAKey
,
privatekey
,
password
)
\
...
@@ -97,7 +97,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
...
@@ -97,7 +97,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
username
=
self
.
get_value
(
'username'
)
username
=
self
.
get_value
(
'username'
)
password
=
self
.
get_argument
(
'password'
)
password
=
self
.
get_argument
(
'password'
)
privatekey
=
self
.
get_privatekey
()
privatekey
=
self
.
get_privatekey
()
pkey
=
self
.
get_pkey
(
privatekey
,
password
)
if
privatekey
else
None
pkey
=
self
.
get_pkey
_obj
(
privatekey
,
password
)
if
privatekey
else
None
args
=
(
hostname
,
port
,
username
,
password
,
pkey
)
args
=
(
hostname
,
port
,
username
,
password
,
pkey
)
logging
.
debug
(
args
)
logging
.
debug
(
args
)
return
args
return
args
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment