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
646a2910
Commit
646a2910
authored
6 years ago
by
BaiJiangJie
Committed by
老广
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改安全设置模块排版,翻译 (#2083)
parent
79208a95
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
4 deletions
+4
-4
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
+0
-0
No files found.
apps/common/forms.py
View file @
646a2910
...
@@ -189,7 +189,7 @@ class SecuritySettingForm(BaseForm):
...
@@ -189,7 +189,7 @@ class SecuritySettingForm(BaseForm):
initial
=
9999
,
label
=
_
(
"Password expiration time"
),
initial
=
9999
,
label
=
_
(
"Password expiration time"
),
min_value
=
1
,
min_value
=
1
,
help_text
=
_
(
help_text
=
_
(
"Tip: (unit
/
day) "
"Tip: (unit
:
day) "
"If the user does not update the password during the time, "
"If the user does not update the password during the time, "
"the user password will expire failure;"
"the user password will expire failure;"
"The password expiration reminder mail will be automatic sent to the user "
"The password expiration reminder mail will be automatic sent to the user "
...
...
This diff is collapsed.
Click to expand it.
apps/common/templates/common/security_setting.html
View file @
646a2910
...
@@ -39,9 +39,9 @@
...
@@ -39,9 +39,9 @@
{% endif %}
{% endif %}
{% csrf_token %}
{% csrf_token %}
<h3>
{% trans "
User login settings
" %}
</h3>
<h3>
{% trans "
Security setting
" %}
</h3>
{% for field in form %}
{% for field in form %}
{% if forloop.counter ==
5
%}
{% if forloop.counter ==
6
%}
<div
class=
"hr-line-dashed"
></div>
<div
class=
"hr-line-dashed"
></div>
<h3>
{% trans "Password check rule" %}
</h3>
<h3>
{% trans "Password check rule" %}
</h3>
{% endif %}
{% endif %}
...
...
This diff is collapsed.
Click to expand it.
apps/common/views.py
View file @
646a2910
...
@@ -52,7 +52,7 @@ class EmailSettingView(SuperUserRequiredMixin, TemplateView):
...
@@ -52,7 +52,7 @@ class EmailSettingView(SuperUserRequiredMixin, TemplateView):
form
=
self
.
form_class
(
request
.
POST
)
form
=
self
.
form_class
(
request
.
POST
)
if
form
.
is_valid
():
if
form
.
is_valid
():
form
.
save
()
form
.
save
()
msg
=
_
(
"Update setting successfully
, please restart program
"
)
msg
=
_
(
"Update setting successfully"
)
messages
.
success
(
request
,
msg
)
messages
.
success
(
request
,
msg
)
return
redirect
(
'settings:email-setting'
)
return
redirect
(
'settings:email-setting'
)
else
:
else
:
...
...
This diff is collapsed.
Click to expand it.
apps/locale/zh/LC_MESSAGES/django.mo
View file @
646a2910
No preview for this file type
This diff is collapsed.
Click to expand it.
apps/locale/zh/LC_MESSAGES/django.po
View file @
646a2910
This diff is collapsed.
Click to expand it.
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