Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
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
ops
jumpserver
Commits
c032294b
Commit
c032294b
authored
Jul 31, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修复一些bug
parent
aefc18d7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
fields.py
apps/common/fields.py
+1
-1
api_urls.py
apps/terminal/urls/api_urls.py
+1
-1
user.py
apps/users/models/user.py
+1
-1
requirements.txt
requirements/requirements.txt
+1
-3
No files found.
apps/common/fields.py
View file @
c032294b
...
@@ -62,7 +62,7 @@ class EncryptMixin:
...
@@ -62,7 +62,7 @@ class EncryptMixin:
def
get_prep_value
(
self
,
value
):
def
get_prep_value
(
self
,
value
):
if
value
is
None
:
if
value
is
None
:
return
value
return
value
return
signer
.
sign
(
value
)
.
decode
(
'utf-8'
)
return
signer
.
sign
(
value
)
class
EncryptTextField
(
EncryptMixin
,
models
.
TextField
):
class
EncryptTextField
(
EncryptMixin
,
models
.
TextField
):
...
...
apps/terminal/urls/api_urls.py
View file @
c032294b
...
@@ -23,7 +23,7 @@ urlpatterns = [
...
@@ -23,7 +23,7 @@ urlpatterns = [
api
.
SessionReplayV2ViewSet
.
as_view
({
'get'
:
'retrieve'
,
'post'
:
'create'
}),
api
.
SessionReplayV2ViewSet
.
as_view
({
'get'
:
'retrieve'
,
'post'
:
'create'
}),
name
=
'session-replay'
),
name
=
'session-replay'
),
path
(
'tasks/kill-session/'
,
api
.
KillSessionAPI
.
as_view
(),
name
=
'kill-session'
),
path
(
'tasks/kill-session/'
,
api
.
KillSessionAPI
.
as_view
(),
name
=
'kill-session'
),
path
(
'terminal/<uuid:terminal>/access-key'
,
api
.
TerminalTokenApi
.
as_view
(),
path
(
'terminal/<uuid:terminal>/access-key
/
'
,
api
.
TerminalTokenApi
.
as_view
(),
name
=
'terminal-access-key'
),
name
=
'terminal-access-key'
),
path
(
'terminal/config'
,
api
.
TerminalConfig
.
as_view
(),
name
=
'terminal-config'
),
path
(
'terminal/config'
,
api
.
TerminalConfig
.
as_view
(),
name
=
'terminal-config'
),
# v2: get session's replay
# v2: get session's replay
...
...
apps/users/models/user.py
View file @
c032294b
...
@@ -118,7 +118,7 @@ class User(AbstractUser):
...
@@ -118,7 +118,7 @@ class User(AbstractUser):
@otp_secret_key.setter
@otp_secret_key.setter
def
otp_secret_key
(
self
,
item
):
def
otp_secret_key
(
self
,
item
):
self
.
_otp_secret_key
=
signer
.
sign
(
item
)
.
decode
(
'utf-8'
)
self
.
_otp_secret_key
=
signer
.
sign
(
item
)
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
reverse
(
'users:user-detail'
,
args
=
(
self
.
id
,))
return
reverse
(
'users:user-detail'
,
args
=
(
self
.
id
,))
...
...
requirements/requirements.txt
View file @
c032294b
...
@@ -14,8 +14,7 @@ coreapi==2.3.3
...
@@ -14,8 +14,7 @@ coreapi==2.3.3
coreschema==0.0.4
coreschema==0.0.4
cryptography==2.1.4
cryptography==2.1.4
decorator==4.1.2
decorator==4.1.2
#Django==1.11
Django==2.0.7
#Django==2.0.7
django-auth-ldap==1.3.0
django-auth-ldap==1.3.0
django-bootstrap3==9.1.0
django-bootstrap3==9.1.0
django-celery-beat==1.1.1
django-celery-beat==1.1.1
...
@@ -25,7 +24,6 @@ django-ranged-response==0.2.0
...
@@ -25,7 +24,6 @@ django-ranged-response==0.2.0
django-redis-cache==1.7.1
django-redis-cache==1.7.1
django-rest-swagger==2.1.2
django-rest-swagger==2.1.2
django-simple-captcha==0.5.6
django-simple-captcha==0.5.6
#djangorestframework==3.7.3
djangorestframework==3.8.2
djangorestframework==3.8.2
djangorestframework-bulk==0.2.1
djangorestframework-bulk==0.2.1
docutils==0.14
docutils==0.14
...
...
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