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
091cf39e
Commit
091cf39e
authored
Nov 23, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] ldap可以修改密码问题,platform大小写问题
parent
0df7c690
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
159 additions
and
141 deletions
+159
-141
asset.py
apps/assets/views/asset.py
+2
-1
forms.py
apps/common/forms.py
+1
-0
settings.py
apps/jumpserver/settings.py
+1
-1
django.po
apps/locale/zh/LC_MESSAGES/django.po
+148
-134
user.py
apps/users/api/user.py
+1
-1
login.py
apps/users/views/login.py
+6
-4
No files found.
apps/assets/views/asset.py
View file @
091cf39e
...
@@ -277,7 +277,8 @@ class BulkImportAssetView(AdminUserRequiredMixin, JSONResponseMixin, FormView):
...
@@ -277,7 +277,8 @@ class BulkImportAssetView(AdminUserRequiredMixin, JSONResponseMixin, FormView):
v
=
''
v
=
''
elif
k
==
'domain'
:
elif
k
==
'domain'
:
v
=
get_object_or_none
(
Domain
,
name
=
v
)
v
=
get_object_or_none
(
Domain
,
name
=
v
)
elif
k
==
'platform'
:
v
=
v
.
lower
()
.
capitalize
()
if
v
!=
''
:
if
v
!=
''
:
asset_dict
[
k
]
=
v
asset_dict
[
k
]
=
v
...
...
apps/common/forms.py
View file @
091cf39e
...
@@ -69,6 +69,7 @@ class BasicSettingForm(BaseForm):
...
@@ -69,6 +69,7 @@ class BasicSettingForm(BaseForm):
)
)
EMAIL_SUBJECT_PREFIX
=
forms
.
CharField
(
EMAIL_SUBJECT_PREFIX
=
forms
.
CharField
(
max_length
=
1024
,
label
=
_
(
"Email Subject Prefix"
),
max_length
=
1024
,
label
=
_
(
"Email Subject Prefix"
),
help_text
=
_
(
"Tips: Some word will be intercept by mail provider"
)
)
)
...
...
apps/jumpserver/settings.py
View file @
091cf39e
...
@@ -314,7 +314,7 @@ EMAIL_HOST_USER = 'noreply@jumpserver.org'
...
@@ -314,7 +314,7 @@ EMAIL_HOST_USER = 'noreply@jumpserver.org'
EMAIL_HOST_PASSWORD
=
''
EMAIL_HOST_PASSWORD
=
''
EMAIL_USE_SSL
=
False
EMAIL_USE_SSL
=
False
EMAIL_USE_TLS
=
False
EMAIL_USE_TLS
=
False
EMAIL_SUBJECT_PREFIX
=
'[J
umpserver
] '
EMAIL_SUBJECT_PREFIX
=
'[J
MS
] '
REST_FRAMEWORK
=
{
REST_FRAMEWORK
=
{
# Use Django's standard `django.contrib.auth` permissions,
# Use Django's standard `django.contrib.auth` permissions,
...
...
apps/locale/zh/LC_MESSAGES/django.po
View file @
091cf39e
...
@@ -8,7 +8,7 @@ msgid ""
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
msgstr ""
"Project-Id-Version: Jumpserver 0.3.3\n"
"Project-Id-Version: Jumpserver 0.3.3\n"
"Report-Msgid-Bugs-To: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-2
2 15:16
+0800\n"
"POT-Creation-Date: 2018-11-2
3 16:19
+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: ibuler <ibuler@qq.com>\n"
"Last-Translator: ibuler <ibuler@qq.com>\n"
"Language-Team: Jumpserver team<ibuler@qq.com>\n"
"Language-Team: Jumpserver team<ibuler@qq.com>\n"
...
@@ -126,7 +126,7 @@ msgstr "端口"
...
@@ -126,7 +126,7 @@ msgstr "端口"
#: perms/templates/perms/asset_permission_create_update.html:40
#: perms/templates/perms/asset_permission_create_update.html:40
#: perms/templates/perms/asset_permission_list.html:56
#: perms/templates/perms/asset_permission_list.html:56
#: perms/templates/perms/asset_permission_list.html:148
#: perms/templates/perms/asset_permission_list.html:148
#: terminal/backends/command/models.py:13 terminal/models.py:13
4
#: terminal/backends/command/models.py:13 terminal/models.py:13
8
#: terminal/templates/terminal/command_list.html:40
#: terminal/templates/terminal/command_list.html:40
#: terminal/templates/terminal/command_list.html:73
#: terminal/templates/terminal/command_list.html:73
#: terminal/templates/terminal/session_list.html:41
#: terminal/templates/terminal/session_list.html:41
...
@@ -154,7 +154,7 @@ msgstr "不能包含特殊字符"
...
@@ -154,7 +154,7 @@ msgstr "不能包含特殊字符"
#: assets/templates/assets/domain_list.html:25
#: assets/templates/assets/domain_list.html:25
#: assets/templates/assets/label_list.html:14
#: assets/templates/assets/label_list.html:14
#: assets/templates/assets/system_user_detail.html:58
#: assets/templates/assets/system_user_detail.html:58
#: assets/templates/assets/system_user_list.html:29 common/models.py:
31
#: assets/templates/assets/system_user_list.html:29 common/models.py:
29
#: common/templates/common/command_storage_create.html:41
#: common/templates/common/command_storage_create.html:41
#: common/templates/common/replay_storage_create.html:44
#: common/templates/common/replay_storage_create.html:44
#: common/templates/common/terminal_setting.html:80
#: common/templates/common/terminal_setting.html:80
...
@@ -164,9 +164,9 @@ msgstr "不能包含特殊字符"
...
@@ -164,9 +164,9 @@ msgstr "不能包含特殊字符"
#: perms/templates/perms/asset_permission_detail.html:62
#: perms/templates/perms/asset_permission_detail.html:62
#: perms/templates/perms/asset_permission_list.html:53
#: perms/templates/perms/asset_permission_list.html:53
#: perms/templates/perms/asset_permission_user.html:54 terminal/models.py:18
#: perms/templates/perms/asset_permission_user.html:54 terminal/models.py:18
#: terminal/models.py:16
1
terminal/templates/terminal/terminal_detail.html:43
#: terminal/models.py:16
5
terminal/templates/terminal/terminal_detail.html:43
#: terminal/templates/terminal/terminal_list.html:29 users/models/group.py:14
#: terminal/templates/terminal/terminal_list.html:29 users/models/group.py:14
#: users/models/user.py:5
2
users/templates/users/_select_user_modal.html:13
#: users/models/user.py:5
3
users/templates/users/_select_user_modal.html:13
#: users/templates/users/user_detail.html:63
#: users/templates/users/user_detail.html:63
#: users/templates/users/user_group_detail.html:55
#: users/templates/users/user_group_detail.html:55
#: users/templates/users/user_group_list.html:12
#: users/templates/users/user_group_list.html:12
...
@@ -191,7 +191,7 @@ msgstr "名称"
...
@@ -191,7 +191,7 @@ msgstr "名称"
#: assets/templates/assets/system_user_list.html:30
#: assets/templates/assets/system_user_list.html:30
#: audits/templates/audits/login_log_list.html:49
#: audits/templates/audits/login_log_list.html:49
#: perms/templates/perms/asset_permission_user.html:55 users/forms.py:15
#: perms/templates/perms/asset_permission_user.html:55 users/forms.py:15
#: users/forms.py:33 users/models/authentication.py:7
4 users/models/user.py:50
#: users/forms.py:33 users/models/authentication.py:7
7 users/models/user.py:51
#: users/templates/users/_select_user_modal.html:14
#: users/templates/users/_select_user_modal.html:14
#: users/templates/users/login.html:64
#: users/templates/users/login.html:64
#: users/templates/users/user_detail.html:67
#: users/templates/users/user_detail.html:67
...
@@ -204,7 +204,7 @@ msgstr "用户名"
...
@@ -204,7 +204,7 @@ msgstr "用户名"
msgid "Password or private key passphrase"
msgid "Password or private key passphrase"
msgstr "密码或密钥密码"
msgstr "密码或密钥密码"
#: assets/forms/user.py:26 assets/models/base.py:24 common/forms.py:10
5
#: assets/forms/user.py:26 assets/models/base.py:24 common/forms.py:10
6
#: users/forms.py:17 users/forms.py:35 users/forms.py:47
#: users/forms.py:17 users/forms.py:35 users/forms.py:47
#: users/templates/users/login.html:67
#: users/templates/users/login.html:67
#: users/templates/users/reset_password.html:53
#: users/templates/users/reset_password.html:53
...
@@ -216,7 +216,7 @@ msgstr "密码或密钥密码"
...
@@ -216,7 +216,7 @@ msgstr "密码或密钥密码"
msgid "Password"
msgid "Password"
msgstr "密码"
msgstr "密码"
#: assets/forms/user.py:29 users/models/user.py:
79
#: assets/forms/user.py:29 users/models/user.py:
80
msgid "Private key"
msgid "Private key"
msgstr "ssh私钥"
msgstr "ssh私钥"
...
@@ -265,7 +265,7 @@ msgstr "如果选择手动登录模式,用户名和密码可以不填写"
...
@@ -265,7 +265,7 @@ msgstr "如果选择手动登录模式,用户名和密码可以不填写"
#: assets/templates/assets/system_user_asset.html:51
#: assets/templates/assets/system_user_asset.html:51
#: assets/templates/assets/user_asset_list.html:46
#: assets/templates/assets/user_asset_list.html:46
#: assets/templates/assets/user_asset_list.html:162
#: assets/templates/assets/user_asset_list.html:162
#: audits/templates/audits/login_log_list.html:52 common/forms.py:13
4
#: audits/templates/audits/login_log_list.html:52 common/forms.py:13
5
#: perms/templates/perms/asset_permission_asset.html:55
#: perms/templates/perms/asset_permission_asset.html:55
#: users/templates/users/user_granted_asset.html:45
#: users/templates/users/user_granted_asset.html:45
#: users/templates/users/user_group_granted_asset.html:45
#: users/templates/users/user_group_granted_asset.html:45
...
@@ -278,7 +278,7 @@ msgstr "IP"
...
@@ -278,7 +278,7 @@ msgstr "IP"
#: assets/templates/assets/asset_list.html:92
#: assets/templates/assets/asset_list.html:92
#: assets/templates/assets/system_user_asset.html:50
#: assets/templates/assets/system_user_asset.html:50
#: assets/templates/assets/user_asset_list.html:45
#: assets/templates/assets/user_asset_list.html:45
#: assets/templates/assets/user_asset_list.html:161 common/forms.py:13
3
#: assets/templates/assets/user_asset_list.html:161 common/forms.py:13
4
#: perms/templates/perms/asset_permission_asset.html:54
#: perms/templates/perms/asset_permission_asset.html:54
#: users/templates/users/user_granted_asset.html:44
#: users/templates/users/user_granted_asset.html:44
#: users/templates/users/user_group_granted_asset.html:44
#: users/templates/users/user_group_granted_asset.html:44
...
@@ -388,7 +388,7 @@ msgstr "标签管理"
...
@@ -388,7 +388,7 @@ msgstr "标签管理"
#: assets/templates/assets/system_user_detail.html:100
#: assets/templates/assets/system_user_detail.html:100
#: ops/templates/ops/adhoc_detail.html:86 orgs/models.py:15 perms/models.py:37
#: ops/templates/ops/adhoc_detail.html:86 orgs/models.py:15 perms/models.py:37
#: perms/models.py:84 perms/templates/perms/asset_permission_detail.html:98
#: perms/models.py:84 perms/templates/perms/asset_permission_detail.html:98
#: users/models/user.py:9
3
users/templates/users/user_detail.html:111
#: users/models/user.py:9
4
users/templates/users/user_detail.html:111
#: xpack/plugins/cloud/models.py:46 xpack/plugins/cloud/models.py:140
#: xpack/plugins/cloud/models.py:46 xpack/plugins/cloud/models.py:140
msgid "Created by"
msgid "Created by"
msgstr "创建者"
msgstr "创建者"
...
@@ -426,11 +426,11 @@ msgstr "创建日期"
...
@@ -426,11 +426,11 @@ msgstr "创建日期"
#: assets/templates/assets/domain_list.html:28
#: assets/templates/assets/domain_list.html:28
#: assets/templates/assets/system_user_detail.html:104
#: assets/templates/assets/system_user_detail.html:104
#: assets/templates/assets/system_user_list.html:37
#: assets/templates/assets/system_user_list.html:37
#: assets/templates/assets/user_asset_list.html:170 common/models.py:3
6
#: assets/templates/assets/user_asset_list.html:170 common/models.py:3
4
#: ops/models/adhoc.py:43 orgs/models.py:17 perms/models.py:39
#: ops/models/adhoc.py:43 orgs/models.py:17 perms/models.py:39
#: perms/models.py:86 perms/templates/perms/asset_permission_detail.html:102
#: perms/models.py:86 perms/templates/perms/asset_permission_detail.html:102
#: terminal/models.py:28 terminal/templates/terminal/terminal_detail.html:63
#: terminal/models.py:28 terminal/templates/terminal/terminal_detail.html:63
#: users/models/group.py:15 users/models/user.py:8
5
#: users/models/group.py:15 users/models/user.py:8
6
#: users/templates/users/user_detail.html:127
#: users/templates/users/user_detail.html:127
#: users/templates/users/user_group_detail.html:67
#: users/templates/users/user_group_detail.html:67
#: users/templates/users/user_group_list.html:14
#: users/templates/users/user_group_list.html:14
...
@@ -461,7 +461,7 @@ msgstr "带宽"
...
@@ -461,7 +461,7 @@ msgstr "带宽"
msgid "Contact"
msgid "Contact"
msgstr "联系人"
msgstr "联系人"
#: assets/models/cluster.py:22 users/models/user.py:7
1
#: assets/models/cluster.py:22 users/models/user.py:7
2
#: users/templates/users/user_detail.html:76
#: users/templates/users/user_detail.html:76
msgid "Phone"
msgid "Phone"
msgstr "手机"
msgstr "手机"
...
@@ -487,7 +487,7 @@ msgid "Default"
...
@@ -487,7 +487,7 @@ msgid "Default"
msgstr "默认"
msgstr "默认"
#: assets/models/cluster.py:36 assets/models/label.py:14
#: assets/models/cluster.py:36 assets/models/label.py:14
#: users/models/user.py:
397
#: users/models/user.py:
422
msgid "System"
msgid "System"
msgstr "系统"
msgstr "系统"
...
@@ -515,7 +515,7 @@ msgstr "BGP全网通"
...
@@ -515,7 +515,7 @@ msgstr "BGP全网通"
msgid "Regex"
msgid "Regex"
msgstr "正则表达式"
msgstr "正则表达式"
#: assets/models/cmd_filter.py:35 terminal/models.py:14
0
#: assets/models/cmd_filter.py:35 terminal/models.py:14
4
#: terminal/templates/terminal/command_list.html:55
#: terminal/templates/terminal/command_list.html:55
#: terminal/templates/terminal/command_list.html:71
#: terminal/templates/terminal/command_list.html:71
#: terminal/templates/terminal/session_detail.html:48
#: terminal/templates/terminal/session_detail.html:48
...
@@ -616,12 +616,12 @@ msgstr "默认资产组"
...
@@ -616,12 +616,12 @@ msgstr "默认资产组"
#: perms/templates/perms/asset_permission_create_update.html:36
#: perms/templates/perms/asset_permission_create_update.html:36
#: perms/templates/perms/asset_permission_list.html:54
#: perms/templates/perms/asset_permission_list.html:54
#: perms/templates/perms/asset_permission_list.html:142 templates/index.html:87
#: perms/templates/perms/asset_permission_list.html:142 templates/index.html:87
#: terminal/backends/command/models.py:12 terminal/models.py:13
3
#: terminal/backends/command/models.py:12 terminal/models.py:13
7
#: terminal/templates/terminal/command_list.html:32
#: terminal/templates/terminal/command_list.html:32
#: terminal/templates/terminal/command_list.html:72
#: terminal/templates/terminal/command_list.html:72
#: terminal/templates/terminal/session_list.html:33
#: terminal/templates/terminal/session_list.html:33
#: terminal/templates/terminal/session_list.html:71 users/forms.py:310
#: terminal/templates/terminal/session_list.html:71 users/forms.py:310
#: users/models/user.py:3
2 users/models/user.py:385
#: users/models/user.py:3
3 users/models/user.py:410
#: users/templates/users/user_group_detail.html:78
#: users/templates/users/user_group_detail.html:78
#: users/templates/users/user_group_list.html:13 users/views/user.py:384
#: users/templates/users/user_group_list.html:13 users/views/user.py:384
#: xpack/plugins/orgs/forms.py:26
#: xpack/plugins/orgs/forms.py:26
...
@@ -631,7 +631,7 @@ msgid "User"
...
@@ -631,7 +631,7 @@ msgid "User"
msgstr "用户"
msgstr "用户"
#: assets/models/label.py:19 assets/models/node.py:20
#: assets/models/label.py:19 assets/models/node.py:20
#: assets/templates/assets/label_list.html:15 common/models.py:3
2
#: assets/templates/assets/label_list.html:15 common/models.py:3
0
msgid "Value"
msgid "Value"
msgstr "值"
msgstr "值"
...
@@ -699,7 +699,7 @@ msgstr "登录模式"
...
@@ -699,7 +699,7 @@ msgstr "登录模式"
#: perms/templates/perms/asset_permission_detail.html:140
#: perms/templates/perms/asset_permission_detail.html:140
#: perms/templates/perms/asset_permission_list.html:58
#: perms/templates/perms/asset_permission_list.html:58
#: perms/templates/perms/asset_permission_list.html:154 templates/_nav.html:25
#: perms/templates/perms/asset_permission_list.html:154 templates/_nav.html:25
#: terminal/backends/command/models.py:14 terminal/models.py:13
5
#: terminal/backends/command/models.py:14 terminal/models.py:13
9
#: terminal/templates/terminal/command_list.html:48
#: terminal/templates/terminal/command_list.html:48
#: terminal/templates/terminal/command_list.html:74
#: terminal/templates/terminal/command_list.html:74
#: terminal/templates/terminal/session_list.html:49
#: terminal/templates/terminal/session_list.html:49
...
@@ -1544,7 +1544,7 @@ msgstr "批量更新资产"
...
@@ -1544,7 +1544,7 @@ msgstr "批量更新资产"
msgid "Update asset"
msgid "Update asset"
msgstr "更新资产"
msgstr "更新资产"
#: assets/views/asset.py:29
1
#: assets/views/asset.py:29
2
msgid "already exists"
msgid "already exists"
msgstr "已经存在"
msgstr "已经存在"
...
@@ -1624,7 +1624,7 @@ msgstr "系统用户集群资产"
...
@@ -1624,7 +1624,7 @@ msgstr "系统用户集群资产"
#: audits/templates/audits/ftp_log_list.html:73
#: audits/templates/audits/ftp_log_list.html:73
#: audits/templates/audits/operate_log_list.html:70
#: audits/templates/audits/operate_log_list.html:70
#: audits/templates/audits/password_change_log_list.html:52
#: audits/templates/audits/password_change_log_list.html:52
#: terminal/models.py:1
37
terminal/templates/terminal/session_list.html:74
#: terminal/models.py:1
41
terminal/templates/terminal/session_list.html:74
#: terminal/templates/terminal/terminal_detail.html:47
#: terminal/templates/terminal/terminal_detail.html:47
msgid "Remote addr"
msgid "Remote addr"
msgstr "远端地址"
msgstr "远端地址"
...
@@ -1639,7 +1639,7 @@ msgid "Filename"
...
@@ -1639,7 +1639,7 @@ msgid "Filename"
msgstr "文件名"
msgstr "文件名"
#: audits/models.py:22 audits/templates/audits/ftp_log_list.html:76
#: audits/models.py:22 audits/templates/audits/ftp_log_list.html:76
#: ops/templates/ops/task_list.html:39 users/models/authentication.py:7
0
#: ops/templates/ops/task_list.html:39 users/models/authentication.py:7
3
#: users/templates/users/user_detail.html:456 xpack/plugins/cloud/api.py:61
#: users/templates/users/user_detail.html:456 xpack/plugins/cloud/api.py:61
msgid "Success"
msgid "Success"
msgstr "成功"
msgstr "成功"
...
@@ -1665,7 +1665,7 @@ msgstr "修改者"
...
@@ -1665,7 +1665,7 @@ msgstr "修改者"
#: ops/templates/ops/adhoc_history.html:52
#: ops/templates/ops/adhoc_history.html:52
#: ops/templates/ops/adhoc_history_detail.html:61
#: ops/templates/ops/adhoc_history_detail.html:61
#: ops/templates/ops/task_history.html:58 perms/models.py:35
#: ops/templates/ops/task_history.html:58 perms/models.py:35
#: perms/templates/perms/asset_permission_detail.html:86 terminal/models.py:14
4
#: perms/templates/perms/asset_permission_detail.html:86 terminal/models.py:14
8
#: terminal/templates/terminal/session_list.html:78
#: terminal/templates/terminal/session_list.html:78
msgid "Date start"
msgid "Date start"
msgstr "开始日期"
msgstr "开始日期"
...
@@ -1707,19 +1707,19 @@ msgid "City"
...
@@ -1707,19 +1707,19 @@ msgid "City"
msgstr "城市"
msgstr "城市"
#: audits/templates/audits/login_log_list.html:54 users/forms.py:168
#: audits/templates/audits/login_log_list.html:54 users/forms.py:168
#: users/models/authentication.py:
79 users/models/user.py:74
#: users/models/authentication.py:
82 users/models/user.py:75
#: users/templates/users/first_login.html:45
#: users/templates/users/first_login.html:45
msgid "MFA"
msgid "MFA"
msgstr "MFA"
msgstr "MFA"
#: audits/templates/audits/login_log_list.html:55
#: audits/templates/audits/login_log_list.html:55
#: users/models/authentication.py:8
0
xpack/plugins/cloud/models.py:192
#: users/models/authentication.py:8
3
xpack/plugins/cloud/models.py:192
#: xpack/plugins/cloud/templates/cloud/sync_instance_task_history.html:69
#: xpack/plugins/cloud/templates/cloud/sync_instance_task_history.html:69
msgid "Reason"
msgid "Reason"
msgstr "原因"
msgstr "原因"
#: audits/templates/audits/login_log_list.html:56
#: audits/templates/audits/login_log_list.html:56
#: users/models/authentication.py:8
1
xpack/plugins/cloud/models.py:191
#: users/models/authentication.py:8
4
xpack/plugins/cloud/models.py:191
#: xpack/plugins/cloud/models.py:208
#: xpack/plugins/cloud/models.py:208
#: xpack/plugins/cloud/templates/cloud/sync_instance_task_history.html:70
#: xpack/plugins/cloud/templates/cloud/sync_instance_task_history.html:70
#: xpack/plugins/cloud/templates/cloud/sync_instance_task_instance.html:67
#: xpack/plugins/cloud/templates/cloud/sync_instance_task_instance.html:67
...
@@ -1758,7 +1758,7 @@ msgstr "改密日志"
...
@@ -1758,7 +1758,7 @@ msgstr "改密日志"
#: audits/views.py:187 templates/_nav.html:10 users/views/group.py:28
#: audits/views.py:187 templates/_nav.html:10 users/views/group.py:28
#: users/views/group.py:44 users/views/group.py:60 users/views/group.py:76
#: users/views/group.py:44 users/views/group.py:60 users/views/group.py:76
#: users/views/group.py:92 users/views/login.py:34
4
users/views/user.py:68
#: users/views/group.py:92 users/views/login.py:34
6
users/views/user.py:68
#: users/views/user.py:83 users/views/user.py:111 users/views/user.py:192
#: users/views/user.py:83 users/views/user.py:111 users/views/user.py:192
#: users/views/user.py:353 users/views/user.py:403 users/views/user.py:437
#: users/views/user.py:353 users/views/user.py:403 users/views/user.py:437
msgid "Users"
msgid "Users"
...
@@ -1835,72 +1835,76 @@ msgstr "用户第一次登录,修改profile后重定向到地址"
...
@@ -1835,72 +1835,76 @@ msgstr "用户第一次登录,修改profile后重定向到地址"
msgid "Email Subject Prefix"
msgid "Email Subject Prefix"
msgstr "Email主题前缀"
msgstr "Email主题前缀"
#: common/forms.py:77
#: common/forms.py:72
msgid "Tips: Some word will be intercept by mail provider"
msgstr "提示: 一些关键字可能会被邮件提供商拦截,如 跳板机、Jumpserver"
#: common/forms.py:78
msgid "SMTP host"
msgid "SMTP host"
msgstr "SMTP主机"
msgstr "SMTP主机"
#: common/forms.py:
79
#: common/forms.py:
80
msgid "SMTP port"
msgid "SMTP port"
msgstr "SMTP端口"
msgstr "SMTP端口"
#: common/forms.py:8
1
#: common/forms.py:8
2
msgid "SMTP user"
msgid "SMTP user"
msgstr "SMTP账号"
msgstr "SMTP账号"
#: common/forms.py:8
4
#: common/forms.py:8
5
msgid "SMTP password"
msgid "SMTP password"
msgstr "SMTP密码"
msgstr "SMTP密码"
#: common/forms.py:8
5
#: common/forms.py:8
6
msgid "Some provider use token except password"
msgid "Some provider use token except password"
msgstr "一些邮件提供商需要输入的是Token"
msgstr "一些邮件提供商需要输入的是Token"
#: common/forms.py:8
8 common/forms.py:126
#: common/forms.py:8
9 common/forms.py:127
msgid "Use SSL"
msgid "Use SSL"
msgstr "使用SSL"
msgstr "使用SSL"
#: common/forms.py:
89
#: common/forms.py:
90
msgid "If SMTP port is 465, may be select"
msgid "If SMTP port is 465, may be select"
msgstr "如果SMTP端口是465,通常需要启用SSL"
msgstr "如果SMTP端口是465,通常需要启用SSL"
#: common/forms.py:9
2
#: common/forms.py:9
3
msgid "Use TLS"
msgid "Use TLS"
msgstr "使用TLS"
msgstr "使用TLS"
#: common/forms.py:9
3
#: common/forms.py:9
4
msgid "If SMTP port is 587, may be select"
msgid "If SMTP port is 587, may be select"
msgstr "如果SMTP端口是587,通常需要启用TLS"
msgstr "如果SMTP端口是587,通常需要启用TLS"
#: common/forms.py:
99
#: common/forms.py:
100
msgid "LDAP server"
msgid "LDAP server"
msgstr "LDAP地址"
msgstr "LDAP地址"
#: common/forms.py:10
2
#: common/forms.py:10
3
msgid "Bind DN"
msgid "Bind DN"
msgstr "绑定DN"
msgstr "绑定DN"
#: common/forms.py:1
09
#: common/forms.py:1
10
msgid "User OU"
msgid "User OU"
msgstr "用户OU"
msgstr "用户OU"
#: common/forms.py:11
0
#: common/forms.py:11
1
msgid "Use | split User OUs"
msgid "Use | split User OUs"
msgstr "使用|分隔各OU"
msgstr "使用|分隔各OU"
#: common/forms.py:11
3
#: common/forms.py:11
4
msgid "User search filter"
msgid "User search filter"
msgstr "用户过滤器"
msgstr "用户过滤器"
#: common/forms.py:11
4
#: common/forms.py:11
5
#, python-format
#, python-format
msgid "Choice may be (cn|uid|sAMAccountName)=%(user)s)"
msgid "Choice may be (cn|uid|sAMAccountName)=%(user)s)"
msgstr "可能的选项是(cn或uid或sAMAccountName=%(user)s)"
msgstr "可能的选项是(cn或uid或sAMAccountName=%(user)s)"
#: common/forms.py:11
7
#: common/forms.py:11
8
msgid "User attr map"
msgid "User attr map"
msgstr "LDAP属性映射"
msgstr "LDAP属性映射"
#: common/forms.py:1
19
#: common/forms.py:1
20
msgid ""
msgid ""
"User attr map present how to map LDAP user attr to jumpserver, username,name,"
"User attr map present how to map LDAP user attr to jumpserver, username,name,"
"email is jumpserver attr"
"email is jumpserver attr"
...
@@ -1908,69 +1912,69 @@ msgstr ""
...
@@ -1908,69 +1912,69 @@ msgstr ""
"用户属性映射代表怎样将LDAP中用户属性映射到jumpserver用户上,username, name,"
"用户属性映射代表怎样将LDAP中用户属性映射到jumpserver用户上,username, name,"
"email 是jumpserver的属性"
"email 是jumpserver的属性"
#: common/forms.py:12
8
#: common/forms.py:12
9
msgid "Enable LDAP auth"
msgid "Enable LDAP auth"
msgstr "启用LDAP认证"
msgstr "启用LDAP认证"
#: common/forms.py:13
7
#: common/forms.py:13
8
msgid "Password auth"
msgid "Password auth"
msgstr "密码认证"
msgstr "密码认证"
#: common/forms.py:14
0
#: common/forms.py:14
1
msgid "Public key auth"
msgid "Public key auth"
msgstr "密钥认证"
msgstr "密钥认证"
#: common/forms.py:14
3
#: common/forms.py:14
4
msgid "Heartbeat interval"
msgid "Heartbeat interval"
msgstr "心跳间隔"
msgstr "心跳间隔"
#: common/forms.py:14
3
ops/models/adhoc.py:38
#: common/forms.py:14
4
ops/models/adhoc.py:38
msgid "Units: seconds"
msgid "Units: seconds"
msgstr "单位: 秒"
msgstr "单位: 秒"
#: common/forms.py:14
6
#: common/forms.py:14
7
msgid "List sort by"
msgid "List sort by"
msgstr "资产列表排序"
msgstr "资产列表排序"
#: common/forms.py:15
8
#: common/forms.py:15
9
msgid "MFA Secondary certification"
msgid "MFA Secondary certification"
msgstr "MFA 二次认证"
msgstr "MFA 二次认证"
#: common/forms.py:16
0
#: common/forms.py:16
1
msgid ""
msgid ""
"After opening, the user login must use MFA secondary authentication (valid "
"After opening, the user login must use MFA secondary authentication (valid "
"for all users, including administrators)"
"for all users, including administrators)"
msgstr "开启后,用户登录必须使用MFA二次认证(对所有用户有效,包括管理员)"
msgstr "开启后,用户登录必须使用MFA二次认证(对所有用户有效,包括管理员)"
#: common/forms.py:16
7
#: common/forms.py:16
8
msgid "Limit the number of login failures"
msgid "Limit the number of login failures"
msgstr "限制登录失败次数"
msgstr "限制登录失败次数"
#: common/forms.py:17
2
#: common/forms.py:17
3
msgid "No logon interval"
msgid "No logon interval"
msgstr "禁止登录时间间隔"
msgstr "禁止登录时间间隔"
#: common/forms.py:17
4
#: common/forms.py:17
5
msgid ""
msgid ""
"Tip: (unit/minute) if the user has failed to log in for a limited number of "
"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."
"times, no login is allowed during this time interval."
msgstr ""
msgstr ""
"提示: (单位: 分钟) 当用户登录失败次数达到限制后,那么在此时间间隔内禁止登录."
"提示: (单位: 分钟) 当用户登录失败次数达到限制后,那么在此时间间隔内禁止登录."
#: common/forms.py:18
1
#: common/forms.py:18
2
msgid "Connection max idle time"
msgid "Connection max idle time"
msgstr "SSH最大空闲时间"
msgstr "SSH最大空闲时间"
#: common/forms.py:18
3
#: common/forms.py:18
4
msgid ""
msgid ""
"If idle time more than it, disconnect connection(only ssh now) Unit: minute"
"If idle time more than it, disconnect connection(only ssh now) Unit: minute"
msgstr "提示: (单位: 分钟) 如果超过该配置没有操作,连接会被断开(仅ssh) "
msgstr "提示: (单位: 分钟) 如果超过该配置没有操作,连接会被断开(仅ssh) "
#: common/forms.py:1
89
#: common/forms.py:1
90
msgid "Password expiration time"
msgid "Password expiration time"
msgstr "密码过期时间"
msgstr "密码过期时间"
#: common/forms.py:19
2
#: common/forms.py:19
3
msgid ""
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 "
"the user password will expire failure;The password expiration reminder mail "
...
@@ -1978,45 +1982,45 @@ msgid ""
...
@@ -1978,45 +1982,45 @@ msgid ""
"the password expires"
"the password expires"
msgstr ""
msgstr ""
#: common/forms.py:20
1
#: common/forms.py:20
2
msgid "Password minimum length"
msgid "Password minimum length"
msgstr "密码最小长度 "
msgstr "密码最小长度 "
#: common/forms.py:20
7
#: common/forms.py:20
8
msgid "Must contain capital letters"
msgid "Must contain capital letters"
msgstr "必须包含大写字母"
msgstr "必须包含大写字母"
#: common/forms.py:2
09
#: common/forms.py:2
10
msgid ""
msgid ""
"After opening, the user password changes and resets must contain uppercase "
"After opening, the user password changes and resets must contain uppercase "
"letters"
"letters"
msgstr "开启后,用户密码修改、重置必须包含大写字母"
msgstr "开启后,用户密码修改、重置必须包含大写字母"
#: common/forms.py:21
5
#: common/forms.py:21
6
msgid "Must contain lowercase letters"
msgid "Must contain lowercase letters"
msgstr "必须包含小写字母"
msgstr "必须包含小写字母"
#: common/forms.py:21
6
#: common/forms.py:21
7
msgid ""
msgid ""
"After opening, the user password changes and resets must contain lowercase "
"After opening, the user password changes and resets must contain lowercase "
"letters"
"letters"
msgstr "开启后,用户密码修改、重置必须包含小写字母"
msgstr "开启后,用户密码修改、重置必须包含小写字母"
#: common/forms.py:22
2
#: common/forms.py:22
3
msgid "Must contain numeric characters"
msgid "Must contain numeric characters"
msgstr "必须包含数字字符"
msgstr "必须包含数字字符"
#: common/forms.py:22
3
#: common/forms.py:22
4
msgid ""
msgid ""
"After opening, the user password changes and resets must contain numeric "
"After opening, the user password changes and resets must contain numeric "
"characters"
"characters"
msgstr "开启后,用户密码修改、重置必须包含数字字符"
msgstr "开启后,用户密码修改、重置必须包含数字字符"
#: common/forms.py:2
29
#: common/forms.py:2
30
msgid "Must contain special characters"
msgid "Must contain special characters"
msgstr "必须包含特殊字符"
msgstr "必须包含特殊字符"
#: common/forms.py:23
0
#: common/forms.py:23
1
msgid ""
msgid ""
"After opening, the user password changes and resets must contain special "
"After opening, the user password changes and resets must contain special "
"characters"
"characters"
...
@@ -2030,7 +2034,7 @@ msgstr ""
...
@@ -2030,7 +2034,7 @@ msgstr ""
msgid "discard time"
msgid "discard time"
msgstr ""
msgstr ""
#: common/models.py:3
5 users/models/authentication.py:51
#: common/models.py:3
3 users/models/authentication.py:54
#: users/templates/users/user_detail.html:96
#: users/templates/users/user_detail.html:96
msgid "Enabled"
msgid "Enabled"
msgstr "启用"
msgstr "启用"
...
@@ -2186,11 +2190,17 @@ msgstr "不能包含特殊字符"
...
@@ -2186,11 +2190,17 @@ msgstr "不能包含特殊字符"
msgid "Settings"
msgid "Settings"
msgstr "系统设置"
msgstr "系统设置"
#: common/views.py:29 common/views.py:
55 common/views.py:
81 common/views.py:112
#: common/views.py:29 common/views.py:81 common/views.py:112
#: common/views.py:162
#: common/views.py:162
msgid "Update setting successfully"
msgid "Update setting successfully"
msgstr "更新设置成功"
msgstr "更新设置成功"
#: common/views.py:55
#, fuzzy
#| msgid "Update setting successfully"
msgid "Update setting successfully, please restart program"
msgstr "更新设置成功"
#: common/views.py:127
#: common/views.py:127
msgid "Create replay storage"
msgid "Create replay storage"
msgstr "创建录像存储"
msgstr "创建录像存储"
...
@@ -2199,7 +2209,7 @@ msgstr "创建录像存储"
...
@@ -2199,7 +2209,7 @@ msgstr "创建录像存储"
msgid "Create command storage"
msgid "Create command storage"
msgstr "创建命令存储"
msgstr "创建命令存储"
#: jumpserver/views.py:18
0
#: jumpserver/views.py:18
5
msgid ""
msgid ""
"<div>Luna is a separately deployed program, you need to deploy Luna, coco, "
"<div>Luna is a separately deployed program, you need to deploy Luna, coco, "
"configure nginx for url distribution,</div> </div>If you see this page, "
"configure nginx for url distribution,</div> </div>If you see this page, "
...
@@ -2457,7 +2467,7 @@ msgstr "组织管理"
...
@@ -2457,7 +2467,7 @@ msgstr "组织管理"
#: perms/forms.py:31 perms/models.py:30 perms/models.py:80
#: perms/forms.py:31 perms/models.py:30 perms/models.py:80
#: perms/templates/perms/asset_permission_list.html:55
#: perms/templates/perms/asset_permission_list.html:55
#: perms/templates/perms/asset_permission_list.html:145 templates/_nav.html:14
#: perms/templates/perms/asset_permission_list.html:145 templates/_nav.html:14
#: users/forms.py:280 users/models/group.py:26 users/models/user.py:5
8
#: users/forms.py:280 users/models/group.py:26 users/models/user.py:5
9
#: users/templates/users/_select_user_modal.html:16
#: users/templates/users/_select_user_modal.html:16
#: users/templates/users/user_detail.html:211
#: users/templates/users/user_detail.html:211
#: users/templates/users/user_list.html:26
#: users/templates/users/user_list.html:26
...
@@ -2475,7 +2485,7 @@ msgstr "资产和节点至少选一个"
...
@@ -2475,7 +2485,7 @@ msgstr "资产和节点至少选一个"
#: perms/models.py:36 perms/models.py:83
#: perms/models.py:36 perms/models.py:83
#: perms/templates/perms/asset_permission_detail.html:90
#: perms/templates/perms/asset_permission_detail.html:90
#: users/models/user.py:9
0
users/templates/users/user_detail.html:107
#: users/models/user.py:9
1
users/templates/users/user_detail.html:107
#: users/templates/users/user_profile.html:116
#: users/templates/users/user_profile.html:116
msgid "Date expired"
msgid "Date expired"
msgstr "失效日期"
msgstr "失效日期"
...
@@ -2952,43 +2962,43 @@ msgstr "SSH端口"
...
@@ -2952,43 +2962,43 @@ msgstr "SSH端口"
msgid "HTTP Port"
msgid "HTTP Port"
msgstr "HTTP端口"
msgstr "HTTP端口"
#: terminal/models.py:10
5
#: terminal/models.py:10
9
msgid "Session Online"
msgid "Session Online"
msgstr "在线会话"
msgstr "在线会话"
#: terminal/models.py:1
06
#: terminal/models.py:1
10
msgid "CPU Usage"
msgid "CPU Usage"
msgstr "CPU使用"
msgstr "CPU使用"
#: terminal/models.py:1
07
#: terminal/models.py:1
11
msgid "Memory Used"
msgid "Memory Used"
msgstr "内存使用"
msgstr "内存使用"
#: terminal/models.py:1
08
#: terminal/models.py:1
12
msgid "Connections"
msgid "Connections"
msgstr "连接数"
msgstr "连接数"
#: terminal/models.py:1
09
#: terminal/models.py:1
13
msgid "Threads"
msgid "Threads"
msgstr "线程数"
msgstr "线程数"
#: terminal/models.py:11
0
#: terminal/models.py:11
4
msgid "Boot Time"
msgid "Boot Time"
msgstr "运行时间"
msgstr "运行时间"
#: terminal/models.py:1
39
terminal/templates/terminal/session_list.html:104
#: terminal/models.py:1
43
terminal/templates/terminal/session_list.html:104
msgid "Replay"
msgid "Replay"
msgstr "回放"
msgstr "回放"
#: terminal/models.py:14
3
#: terminal/models.py:14
7
msgid "Date last active"
msgid "Date last active"
msgstr "最后活跃日期"
msgstr "最后活跃日期"
#: terminal/models.py:14
5
#: terminal/models.py:14
9
msgid "Date end"
msgid "Date end"
msgstr "结束日期"
msgstr "结束日期"
#: terminal/models.py:16
2
#: terminal/models.py:16
6
msgid "Args"
msgid "Args"
msgstr "参数"
msgstr "参数"
...
@@ -3142,66 +3152,66 @@ msgstr "用户 {} 密码已经过期,请更新。"
...
@@ -3142,66 +3152,66 @@ msgstr "用户 {} 密码已经过期,请更新。"
msgid "Please carry seed value and conduct MFA secondary certification"
msgid "Please carry seed value and conduct MFA secondary certification"
msgstr "请携带seed值, 进行MFA二次认证"
msgstr "请携带seed值, 进行MFA二次认证"
#: users/api/auth.py:20
5
#: users/api/auth.py:20
4
msgid "Please verify the user name and password first"
msgid "Please verify the user name and password first"
msgstr "请先进行用户名和密码验证"
msgstr "请先进行用户名和密码验证"
#: users/api/auth.py:21
7
#: users/api/auth.py:21
6
msgid "MFA certification failed"
msgid "MFA certification failed"
msgstr "MFA认证失败"
msgstr "MFA认证失败"
#: users/api/user.py:1
38
#: users/api/user.py:1
40
msgid "Could not reset self otp, use profile reset instead"
msgid "Could not reset self otp, use profile reset instead"
msgstr "不能再该页面重置MFA, 请去个人信息页面重置"
msgstr "不能再该页面重置MFA, 请去个人信息页面重置"
#: users/authentication.py:5
6
#: users/authentication.py:5
3
msgid "Invalid signature header. No credentials provided."
msgid "Invalid signature header. No credentials provided."
msgstr ""
msgstr ""
#: users/authentication.py:5
9
#: users/authentication.py:5
6
msgid "Invalid signature header. Signature string should not contain spaces."
msgid "Invalid signature header. Signature string should not contain spaces."
msgstr ""
msgstr ""
#: users/authentication.py:6
6
#: users/authentication.py:6
3
msgid "Invalid signature header. Format like AccessKeyId:Signature"
msgid "Invalid signature header. Format like AccessKeyId:Signature"
msgstr ""
msgstr ""
#: users/authentication.py:
70
#: users/authentication.py:
67
msgid ""
msgid ""
"Invalid signature header. Signature string should not contain invalid "
"Invalid signature header. Signature string should not contain invalid "
"characters."
"characters."
msgstr ""
msgstr ""
#: users/authentication.py:
90 users/authentication.py:106
#: users/authentication.py:
87 users/authentication.py:103
msgid "Invalid signature."
msgid "Invalid signature."
msgstr ""
msgstr ""
#: users/authentication.py:9
7
#: users/authentication.py:9
4
msgid "HTTP header: Date not provide or not %a, %d %b %Y %H:%M:%S GMT"
msgid "HTTP header: Date not provide or not %a, %d %b %Y %H:%M:%S GMT"
msgstr ""
msgstr ""
#: users/authentication.py:
102
#: users/authentication.py:
99
msgid "Expired, more than 15 minutes"
msgid "Expired, more than 15 minutes"
msgstr ""
msgstr ""
#: users/authentication.py:10
9
#: users/authentication.py:10
6
msgid "User disabled."
msgid "User disabled."
msgstr "用户已禁用"
msgstr "用户已禁用"
#: users/authentication.py:12
4
#: users/authentication.py:12
1
msgid "Invalid token header. No credentials provided."
msgid "Invalid token header. No credentials provided."
msgstr ""
msgstr ""
#: users/authentication.py:12
7
#: users/authentication.py:12
4
msgid "Invalid token header. Sign string should not contain spaces."
msgid "Invalid token header. Sign string should not contain spaces."
msgstr ""
msgstr ""
#: users/authentication.py:13
4
#: users/authentication.py:13
1
msgid ""
msgid ""
"Invalid token header. Sign string should not contain invalid characters."
"Invalid token header. Sign string should not contain invalid characters."
msgstr ""
msgstr ""
#: users/authentication.py:14
5
#: users/authentication.py:14
2
msgid "Invalid token or cache refreshed."
msgid "Invalid token or cache refreshed."
msgstr ""
msgstr ""
...
@@ -3209,7 +3219,7 @@ msgstr ""
...
@@ -3209,7 +3219,7 @@ msgstr ""
msgid "MFA code"
msgid "MFA code"
msgstr "MFA 验证码"
msgstr "MFA 验证码"
#: users/forms.py:52 users/models/user.py:6
2
#: users/forms.py:52 users/models/user.py:6
3
#: users/templates/users/_select_user_modal.html:15
#: users/templates/users/_select_user_modal.html:15
#: users/templates/users/user_detail.html:87
#: users/templates/users/user_detail.html:87
#: users/templates/users/user_list.html:25
#: users/templates/users/user_list.html:25
...
@@ -3237,7 +3247,7 @@ msgstr "添加到用户组"
...
@@ -3237,7 +3247,7 @@ msgstr "添加到用户组"
msgid "Public key should not be the same as your old one."
msgid "Public key should not be the same as your old one."
msgstr "不能和原来的密钥相同"
msgstr "不能和原来的密钥相同"
#: users/forms.py:114 users/forms.py:245 users/serializers
.py:49
#: users/forms.py:114 users/forms.py:245 users/serializers
/v1.py:51
msgid "Not a valid ssh public key"
msgid "Not a valid ssh public key"
msgstr "ssh密钥不合法"
msgstr "ssh密钥不合法"
...
@@ -3297,7 +3307,7 @@ msgstr "自动配置并下载SSH密钥"
...
@@ -3297,7 +3307,7 @@ msgstr "自动配置并下载SSH密钥"
msgid "Paste your id_rsa.pub here."
msgid "Paste your id_rsa.pub here."
msgstr "复制你的公钥到这里"
msgstr "复制你的公钥到这里"
#: users/forms.py:256 users/models/user.py:8
2
#: users/forms.py:256 users/models/user.py:8
3
#: users/templates/users/first_login.html:42
#: users/templates/users/first_login.html:42
#: users/templates/users/user_password_update.html:46
#: users/templates/users/user_password_update.html:46
#: users/templates/users/user_profile.html:68
#: users/templates/users/user_profile.html:68
...
@@ -3311,106 +3321,106 @@ msgstr "ssh公钥"
...
@@ -3311,106 +3321,106 @@ msgstr "ssh公钥"
msgid "Select users"
msgid "Select users"
msgstr "选择用户"
msgstr "选择用户"
#: users/models/authentication.py:3
6
#: users/models/authentication.py:3
9
msgid "Private Token"
msgid "Private Token"
msgstr "ssh密钥"
msgstr "ssh密钥"
#: users/models/authentication.py:5
0
users/templates/users/user_detail.html:98
#: users/models/authentication.py:5
3
users/templates/users/user_detail.html:98
msgid "Disabled"
msgid "Disabled"
msgstr "禁用"
msgstr "禁用"
#: users/models/authentication.py:5
2 users/models/authentication.py:62
#: users/models/authentication.py:5
5 users/models/authentication.py:65
msgid "-"
msgid "-"
msgstr ""
msgstr ""
#: users/models/authentication.py:6
3
#: users/models/authentication.py:6
6
msgid "Username/password check failed"
msgid "Username/password check failed"
msgstr "用户名/密码 校验失败"
msgstr "用户名/密码 校验失败"
#: users/models/authentication.py:6
4
#: users/models/authentication.py:6
7
msgid "MFA authentication failed"
msgid "MFA authentication failed"
msgstr "MFA 认证失败"
msgstr "MFA 认证失败"
#: users/models/authentication.py:6
5
#: users/models/authentication.py:6
8
msgid "Username does not exist"
msgid "Username does not exist"
msgstr "用户名不存在"
msgstr "用户名不存在"
#: users/models/authentication.py:6
6
#: users/models/authentication.py:6
9
msgid "Password expired"
msgid "Password expired"
msgstr "密码过期"
msgstr "密码过期"
#: users/models/authentication.py:7
1
xpack/plugins/cloud/models.py:184
#: users/models/authentication.py:7
4
xpack/plugins/cloud/models.py:184
#: xpack/plugins/cloud/models.py:198
#: xpack/plugins/cloud/models.py:198
msgid "Failed"
msgid "Failed"
msgstr "失败"
msgstr "失败"
#: users/models/authentication.py:7
5
#: users/models/authentication.py:7
8
msgid "Login type"
msgid "Login type"
msgstr "登录方式"
msgstr "登录方式"
#: users/models/authentication.py:7
6
#: users/models/authentication.py:7
9
msgid "Login ip"
msgid "Login ip"
msgstr "登录IP"
msgstr "登录IP"
#: users/models/authentication.py:
77
#: users/models/authentication.py:
80
msgid "Login city"
msgid "Login city"
msgstr "登录城市"
msgstr "登录城市"
#: users/models/authentication.py:
78
#: users/models/authentication.py:
81
msgid "User agent"
msgid "User agent"
msgstr "Agent"
msgstr "Agent"
#: users/models/authentication.py:8
2
#: users/models/authentication.py:8
5
msgid "Date login"
msgid "Date login"
msgstr "登录日期"
msgstr "登录日期"
#: users/models/user.py:3
1 users/models/user.py:393
#: users/models/user.py:3
2 users/models/user.py:418
msgid "Administrator"
msgid "Administrator"
msgstr "管理员"
msgstr "管理员"
#: users/models/user.py:3
3
#: users/models/user.py:3
4
msgid "Application"
msgid "Application"
msgstr "应用程序"
msgstr "应用程序"
#: users/models/user.py:3
6
users/templates/users/user_profile.html:92
#: users/models/user.py:3
7
users/templates/users/user_profile.html:92
#: users/templates/users/user_profile.html:167
#: users/templates/users/user_profile.html:167
#: users/templates/users/user_profile.html:170
#: users/templates/users/user_profile.html:170
msgid "Disable"
msgid "Disable"
msgstr "禁用"
msgstr "禁用"
#: users/models/user.py:3
7
users/templates/users/user_profile.html:90
#: users/models/user.py:3
8
users/templates/users/user_profile.html:90
#: users/templates/users/user_profile.html:174
#: users/templates/users/user_profile.html:174
msgid "Enable"
msgid "Enable"
msgstr "启用"
msgstr "启用"
#: users/models/user.py:3
8
users/templates/users/user_profile.html:88
#: users/models/user.py:3
9
users/templates/users/user_profile.html:88
msgid "Force enable"
msgid "Force enable"
msgstr "强制启用"
msgstr "强制启用"
#: users/models/user.py:5
4
users/templates/users/user_detail.html:71
#: users/models/user.py:5
5
users/templates/users/user_detail.html:71
#: users/templates/users/user_profile.html:59
#: users/templates/users/user_profile.html:59
msgid "Email"
msgid "Email"
msgstr "邮件"
msgstr "邮件"
#: users/models/user.py:6
5
#: users/models/user.py:6
6
msgid "Avatar"
msgid "Avatar"
msgstr "头像"
msgstr "头像"
#: users/models/user.py:6
8
users/templates/users/user_detail.html:82
#: users/models/user.py:6
9
users/templates/users/user_detail.html:82
msgid "Wechat"
msgid "Wechat"
msgstr "微信"
msgstr "微信"
#: users/models/user.py:9
7
users/templates/users/user_detail.html:103
#: users/models/user.py:9
8
users/templates/users/user_detail.html:103
#: users/templates/users/user_list.html:27
#: users/templates/users/user_list.html:27
#: users/templates/users/user_profile.html:100
#: users/templates/users/user_profile.html:100
msgid "Source"
msgid "Source"
msgstr "用户来源"
msgstr "用户来源"
#: users/models/user.py:10
1
#: users/models/user.py:10
2
msgid "Date password last updated"
msgid "Date password last updated"
msgstr "最后更新密码日期"
msgstr "最后更新密码日期"
#: users/models/user.py:
396
#: users/models/user.py:
421
msgid "Administrator is the super user of system"
msgid "Administrator is the super user of system"
msgstr "Administrator是初始的超级管理员"
msgstr "Administrator是初始的超级管理员"
...
@@ -4167,36 +4177,40 @@ msgstr "退出登录成功,返回到登录页面"
...
@@ -4167,36 +4177,40 @@ msgstr "退出登录成功,返回到登录页面"
msgid "Email address invalid, please input again"
msgid "Email address invalid, please input again"
msgstr "邮箱地址错误,重新输入"
msgstr "邮箱地址错误,重新输入"
#: users/views/login.py:253
#: users/views/login.py:243
msgid "User auth from {}, go there change password"
msgstr "用户认证源来自 {}, 请去相应系统修改密码"
#: users/views/login.py:256
msgid "Send reset password message"
msgid "Send reset password message"
msgstr "发送重置密码邮件"
msgstr "发送重置密码邮件"
#: users/views/login.py:25
4
#: users/views/login.py:25
7
msgid "Send reset password mail success, login your mail box and follow it "
msgid "Send reset password mail success, login your mail box and follow it "
msgstr ""
msgstr ""
"发送重置邮件成功, 请登录邮箱查看, 按照提示操作 (如果没收到,请等待3-5分钟)"
"发送重置邮件成功, 请登录邮箱查看, 按照提示操作 (如果没收到,请等待3-5分钟)"
#: users/views/login.py:2
67
#: users/views/login.py:2
70
msgid "Reset password success"
msgid "Reset password success"
msgstr "重置密码成功"
msgstr "重置密码成功"
#: users/views/login.py:2
68
#: users/views/login.py:2
71
msgid "Reset password success, return to login page"
msgid "Reset password success, return to login page"
msgstr "重置密码成功,返回到登录页面"
msgstr "重置密码成功,返回到登录页面"
#: users/views/login.py:28
4 users/views/login.py:300
#: users/views/login.py:28
6 users/views/login.py:302
msgid "Token invalid or expired"
msgid "Token invalid or expired"
msgstr "Token错误或失效"
msgstr "Token错误或失效"
#: users/views/login.py:29
6
#: users/views/login.py:29
8
msgid "Password not same"
msgid "Password not same"
msgstr "密码不一致"
msgstr "密码不一致"
#: users/views/login.py:30
6
users/views/user.py:126 users/views/user.py:420
#: users/views/login.py:30
8
users/views/user.py:126 users/views/user.py:420
msgid "* Your password does not meet the requirements"
msgid "* Your password does not meet the requirements"
msgstr "* 您的密码不符合要求"
msgstr "* 您的密码不符合要求"
#: users/views/login.py:34
4
#: users/views/login.py:34
6
msgid "First login"
msgid "First login"
msgstr "首次登陆"
msgstr "首次登陆"
...
...
apps/users/api/user.py
View file @
091cf39e
...
@@ -32,7 +32,7 @@ __all__ = [
...
@@ -32,7 +32,7 @@ __all__ = [
class
UserViewSet
(
IDInFilterMixin
,
BulkModelViewSet
):
class
UserViewSet
(
IDInFilterMixin
,
BulkModelViewSet
):
filter_fields
=
(
'username'
,
'email'
,
'name'
,
'id'
)
filter_fields
=
(
'username'
,
'email'
,
'name'
,
'id'
)
search_fields
=
filter_fields
search_fields
=
filter_fields
queryset
=
User
.
objects
.
all
(
)
queryset
=
User
.
objects
.
exclude
(
role
=
User
.
ROLE_APP
)
serializer_class
=
UserSerializer
serializer_class
=
UserSerializer
permission_classes
=
(
IsOrgAdmin
,)
permission_classes
=
(
IsOrgAdmin
,)
pagination_class
=
LimitOffsetPagination
pagination_class
=
LimitOffsetPagination
...
...
apps/users/views/login.py
View file @
091cf39e
...
@@ -237,8 +237,11 @@ class UserForgotPasswordView(TemplateView):
...
@@ -237,8 +237,11 @@ class UserForgotPasswordView(TemplateView):
email
=
request
.
POST
.
get
(
'email'
)
email
=
request
.
POST
.
get
(
'email'
)
user
=
get_object_or_none
(
User
,
email
=
email
)
user
=
get_object_or_none
(
User
,
email
=
email
)
if
not
user
:
if
not
user
:
return
self
.
get
(
request
,
errors
=
_
(
'Email address invalid, '
error
=
_
(
'Email address invalid, please input again'
)
'please input again'
))
return
self
.
get
(
request
,
errors
=
error
)
elif
not
user
.
is_local
:
error
=
_
(
'User auth from {}, go there change password'
.
format
(
user
.
source
))
return
self
.
get
(
request
,
errors
=
error
)
else
:
else
:
send_reset_password_mail
(
user
)
send_reset_password_mail
(
user
)
return
HttpResponseRedirect
(
return
HttpResponseRedirect
(
...
@@ -270,8 +273,7 @@ class UserResetPasswordSuccessView(TemplateView):
...
@@ -270,8 +273,7 @@ class UserResetPasswordSuccessView(TemplateView):
'auto_redirect'
:
True
,
'auto_redirect'
:
True
,
}
}
kwargs
.
update
(
context
)
kwargs
.
update
(
context
)
return
super
()
\
return
super
()
.
get_context_data
(
**
kwargs
)
.
get_context_data
(
**
kwargs
)
class
UserResetPasswordView
(
TemplateView
):
class
UserResetPasswordView
(
TemplateView
):
...
...
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