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
2661bbb7
Commit
2661bbb7
authored
Nov 23, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Plain Diff
[Update] 修改config example
parents
3e3ab556
646a2910
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
12 deletions
+14
-12
forms.py
apps/common/forms.py
+1
-1
security_setting.html
apps/common/templates/common/security_setting.html
+2
-2
views.py
apps/common/views.py
+1
-1
django.mo
apps/locale/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/locale/zh/LC_MESSAGES/django.po
+10
-8
No files found.
apps/common/forms.py
View file @
2661bbb7
...
...
@@ -190,7 +190,7 @@ class SecuritySettingForm(BaseForm):
initial
=
9999
,
label
=
_
(
"Password expiration time"
),
min_value
=
1
,
help_text
=
_
(
"Tip: (unit
/
day) "
"Tip: (unit
:
day) "
"If the user does not update the password during the time, "
"the user password will expire failure;"
"The password expiration reminder mail will be automatic sent to the user "
...
...
apps/common/templates/common/security_setting.html
View file @
2661bbb7
...
...
@@ -39,9 +39,9 @@
{% endif %}
{% csrf_token %}
<h3>
{% trans "
User login settings
" %}
</h3>
<h3>
{% trans "
Security setting
" %}
</h3>
{% for field in form %}
{% if forloop.counter ==
5
%}
{% if forloop.counter ==
6
%}
<div
class=
"hr-line-dashed"
></div>
<h3>
{% trans "Password check rule" %}
</h3>
{% endif %}
...
...
apps/common/views.py
View file @
2661bbb7
...
...
@@ -52,7 +52,7 @@ class EmailSettingView(SuperUserRequiredMixin, TemplateView):
form
=
self
.
form_class
(
request
.
POST
)
if
form
.
is_valid
():
form
.
save
()
msg
=
_
(
"Update setting successfully
, please restart program
"
)
msg
=
_
(
"Update setting successfully"
)
messages
.
success
(
request
,
msg
)
return
redirect
(
'settings:email-setting'
)
else
:
...
...
apps/locale/zh/LC_MESSAGES/django.mo
View file @
2661bbb7
No preview for this file type
apps/locale/zh/LC_MESSAGES/django.po
View file @
2661bbb7
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Jumpserver 0.3.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-23 16:
19
+0800\n"
"POT-Creation-Date: 2018-11-23 16:
44
+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: ibuler <ibuler@qq.com>\n"
"Language-Team: Jumpserver team<ibuler@qq.com>\n"
...
...
@@ -1959,7 +1959,7 @@ msgid ""
"Tip: (unit/minute) if the user has failed to log in for a limited number of "
"times, no login is allowed during this time interval."
msgstr ""
"提示
: (单位: 分钟) 当用户登录失败次数达到限制后,那么在此时间间隔内禁止登录.
"
"提示
:(单位:分)当用户登录失败次数达到限制后,那么在此时间间隔内禁止登录
"
#: common/forms.py:182
msgid "Connection max idle time"
...
...
@@ -1968,7 +1968,7 @@ msgstr "SSH最大空闲时间"
#: common/forms.py:184
msgid ""
"If idle time more than it, disconnect connection(only ssh now) Unit: minute"
msgstr "提示
: (单位: 分钟) 如果超过该配置没有操作,连接会被断开(仅ssh)
"
msgstr "提示
:(单位:分)如果超过该配置没有操作,连接会被断开(仅ssh)
"
#: common/forms.py:190
msgid "Password expiration time"
...
...
@@ -1976,11 +1976,13 @@ msgstr "密码过期时间"
#: common/forms.py:193
msgid ""
"Tip: (unit
/
day) If the user does not update the password during the time, "
"Tip: (unit
:
day) If the user does not update the password during the time, "
"the user password will expire failure;The password expiration reminder mail "
"will be automatic sent to the user by system within 5 days (daily) before "
"the password expires"
msgstr ""
"提示:(单位:天)如果用户在此期间没有更新密码,用户密码将过期失效; 密码过期提醒"
"邮件将在密码过期前5天内由系统(每天)自动发送给用户"
#: common/forms.py:202
msgid "Password minimum length"
...
...
@@ -2076,6 +2078,7 @@ msgstr "终端设置"
#: common/templates/common/email_setting.html:27
#: common/templates/common/ldap_setting.html:27
#: common/templates/common/security_setting.html:27
#: common/templates/common/security_setting.html:42
#: common/templates/common/terminal_setting.html:31 common/views.py:152
msgid "Security setting"
msgstr "安全设置"
...
...
@@ -2142,10 +2145,6 @@ msgstr "端点后缀"
msgid "Region"
msgstr "地域"
#: common/templates/common/security_setting.html:42
msgid "User login settings"
msgstr "用户登录设置"
#: common/templates/common/security_setting.html:46
msgid "Password check rule"
msgstr "密码校验规则"
...
...
@@ -4569,6 +4568,9 @@ msgstr "创建组织"
msgid "Update org"
msgstr "更新组织"
#~ msgid "User login settings"
#~ msgstr "用户登录设置"
#~ msgid "Bit"
#~ msgstr " 位"
...
...
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