Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
django-sshkey
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dad8a403
authored
Jul 02, 2014
by
Scott Duckworth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove deprecated SSHKEY_AUTHORIZED_KEY_COMMAND
parent
cffe528a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
16 deletions
+0
-16
django_sshkey/settings.py
+0
-10
django_sshkey/views.py
+0
-6
No files found.
django_sshkey/settings.py
View file @
dad8a403
...
@@ -29,13 +29,3 @@
...
@@ -29,13 +29,3 @@
from
django.conf
import
settings
from
django.conf
import
settings
SSHKEY_AUTHORIZED_KEYS_OPTIONS
=
getattr
(
settings
,
'SSHKEY_AUTHORIZED_KEYS_OPTIONS'
,
None
)
SSHKEY_AUTHORIZED_KEYS_OPTIONS
=
getattr
(
settings
,
'SSHKEY_AUTHORIZED_KEYS_OPTIONS'
,
None
)
SSHKEY_AUTHORIZED_KEYS_COMMAND
=
getattr
(
settings
,
'SSHKEY_AUTHORIZED_KEYS_COMMAND'
,
None
)
if
SSHKEY_AUTHORIZED_KEYS_COMMAND
is
not
None
:
import
warnings
with
warnings
.
catch_warnings
():
import
warnings
warnings
.
simplefilter
(
'default'
,
DeprecationWarning
)
warnings
.
warn
(
'SSHKEY_AUTHORIZED_KEYS_COMMAND has been deprecated; '
'use SSHKEY_AUTHORIZED_KEYS_OPTIONS instead.'
,
DeprecationWarning
)
django_sshkey/views.py
View file @
dad8a403
...
@@ -55,12 +55,6 @@ def lookup(request):
...
@@ -55,12 +55,6 @@ def lookup(request):
if
settings
.
SSHKEY_AUTHORIZED_KEYS_OPTIONS
:
if
settings
.
SSHKEY_AUTHORIZED_KEYS_OPTIONS
:
options
=
settings
.
SSHKEY_AUTHORIZED_KEYS_OPTIONS
.
format
(
options
=
settings
.
SSHKEY_AUTHORIZED_KEYS_OPTIONS
.
format
(
username
=
key
.
user
.
username
)
+
' '
username
=
key
.
user
.
username
)
+
' '
elif
settings
.
SSHKEY_AUTHORIZED_KEYS_COMMAND
:
options
=
'command="
%
s" '
%
(
settings
.
SSHKEY_AUTHORIZED_KEYS_COMMAND
.
format
(
username
=
key
.
user
.
username
)
.
replace
(
'"'
,
r'\"'
)
)
else
:
else
:
options
=
''
options
=
''
response
+=
options
+
key
.
key
+
'
\n
'
response
+=
options
+
key
.
key
+
'
\n
'
...
...
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