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
18f88647
Commit
18f88647
authored
Nov 14, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] public config 添加超时时间
parent
f71290d6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
2 deletions
+3
-2
django.mo
apps/locale/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/locale/zh/LC_MESSAGES/django.po
+0
-0
api.py
apps/settings/api.py
+2
-1
forms.py
apps/settings/forms.py
+1
-1
No files found.
apps/locale/zh/LC_MESSAGES/django.mo
View file @
18f88647
No preview for this file type
apps/locale/zh/LC_MESSAGES/django.po
View file @
18f88647
This diff is collapsed.
Click to expand it.
apps/settings/api.py
View file @
18f88647
...
...
@@ -334,7 +334,8 @@ class PublicSettingApi(generics.RetrieveAPIView):
c
=
settings
.
CONFIG
instance
=
{
"data"
:
{
"WINDOWS_SKIP_ALL_MANUAL_PASSWORD"
:
c
.
WINDOWS_SKIP_ALL_MANUAL_PASSWORD
"WINDOWS_SKIP_ALL_MANUAL_PASSWORD"
:
c
.
WINDOWS_SKIP_ALL_MANUAL_PASSWORD
,
"SECURITY_MAX_IDLE_TIME"
:
c
.
SECURITY_MAX_IDLE_TIME
,
}
}
return
instance
...
...
apps/settings/forms.py
View file @
18f88647
...
...
@@ -219,7 +219,7 @@ class SecuritySettingForm(BaseForm):
min_value
=
1
,
max_value
=
99999
,
required
=
False
,
label
=
_
(
"Connection max idle time"
),
help_text
=
_
(
'If idle time more than it, disconnect connection
(only ssh now)
'
'If idle time more than it, disconnect connection '
'Unit: minute'
),
)
...
...
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