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
5f2c31e4
Commit
5f2c31e4
authored
Jun 07, 2018
by
BaiJiangJie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 重置公钥,添加成功信息(user-pubkey-update)/自动跳转下一步(first-login)
parent
64db02c3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
32 deletions
+44
-32
django.mo
apps/i18n/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/i18n/zh/LC_MESSAGES/django.po
+35
-29
first_login.html
apps/users/templates/users/first_login.html
+3
-2
user_pubkey_update.html
apps/users/templates/users/user_pubkey_update.html
+6
-1
No files found.
apps/i18n/zh/LC_MESSAGES/django.mo
View file @
5f2c31e4
No preview for this file type
apps/i18n/zh/LC_MESSAGES/django.po
View file @
5f2c31e4
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Jumpserver 0.3.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-0
6 16:53
+0800\n"
"POT-Creation-Date: 2018-06-0
7 11:34
+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"
...
...
@@ -392,7 +392,7 @@ msgid "Default"
msgstr "默认"
#: assets/models/cluster.py:36 assets/models/label.py:13
#: users/models/user.py:34
7
#: users/models/user.py:34
3
msgid "System"
msgstr "系统"
...
...
@@ -432,9 +432,9 @@ msgstr "默认资产组"
#: terminal/templates/terminal/command_list.html:72
#: terminal/templates/terminal/session_list.html:33
#: terminal/templates/terminal/session_list.html:71 users/forms.py:281
#: users/models/user.py:31 users/models/user.py:33
5
#: users/models/user.py:31 users/models/user.py:33
1
#: users/templates/users/user_group_detail.html:78
#: users/templates/users/user_group_list.html:13 users/views/user.py:3
59
#: users/templates/users/user_group_list.html:13 users/views/user.py:3
62
msgid "User"
msgstr "用户"
...
...
@@ -1965,7 +1965,7 @@ msgstr "文档"
#: users/templates/users/user_profile.html:17
#: users/templates/users/user_profile_update.html:37
#: users/templates/users/user_profile_update.html:57
#: users/templates/users/user_pubkey_update.html:37 users/views/user.py:34
1
#: users/templates/users/user_pubkey_update.html:37 users/views/user.py:34
4
msgid "Profile"
msgstr "个人信息"
...
...
@@ -2022,13 +2022,13 @@ msgstr "关闭"
#: templates/_nav.html:10 users/views/group.py:28 users/views/group.py:44
#: users/views/group.py:62 users/views/group.py:79 users/views/group.py:95
#: users/views/login.py:277 users/views/login.py:335 users/views/user.py:6
5
#: users/views/user.py:8
0 users/views/user.py:102 users/views/user.py:173
#: users/views/user.py:32
8 users/views/user.py:378 users/views/user.py:413
#: users/views/login.py:277 users/views/login.py:335 users/views/user.py:6
6
#: users/views/user.py:8
1 users/views/user.py:103 users/views/user.py:174
#: users/views/user.py:32
9 users/views/user.py:381 users/views/user.py:416
msgid "Users"
msgstr "用户管理"
#: templates/_nav.html:13 users/views/user.py:6
6
#: templates/_nav.html:13 users/views/user.py:6
7
msgid "User list"
msgstr "用户列表"
...
...
@@ -2464,7 +2464,7 @@ msgstr "Agent"
msgid "Date login"
msgstr "登录日期"
#: users/models/user.py:30 users/models/user.py:3
43
#: users/models/user.py:30 users/models/user.py:3
39
msgid "Administrator"
msgstr "管理员"
...
...
@@ -2506,7 +2506,7 @@ msgstr "微信"
msgid "Source"
msgstr "用户来源"
#: users/models/user.py:34
6
#: users/models/user.py:34
2
msgid "Administrator is the super user of system"
msgstr "Administrator是初始的超级管理员"
...
...
@@ -2649,7 +2649,7 @@ msgid "Setting"
msgstr "设置"
#: users/templates/users/user_create.html:4
#: users/templates/users/user_list.html:16 users/views/user.py:8
0
#: users/templates/users/user_list.html:16 users/views/user.py:8
1
msgid "Create user"
msgstr "创建用户"
...
...
@@ -2658,7 +2658,7 @@ msgid "Reset link will be generated and sent to the user. "
msgstr "生成重置密码连接,通过邮件发送给用户"
#: users/templates/users/user_detail.html:19
#: users/templates/users/user_granted_asset.html:18 users/views/user.py:17
4
#: users/templates/users/user_granted_asset.html:18 users/views/user.py:17
5
msgid "User detail"
msgstr "用户详情"
...
...
@@ -2793,8 +2793,8 @@ msgstr "用户删除失败"
msgid "Administrator Settings force MFA login"
msgstr "管理员设置强制使用MFA登录"
#: users/templates/users/user_profile.html:116 users/views/user.py:20
3
#: users/views/user.py:25
7
#: users/templates/users/user_profile.html:116 users/views/user.py:20
4
#: users/views/user.py:25
8
msgid "User groups"
msgstr "用户组"
...
...
@@ -2834,7 +2834,13 @@ msgstr "更新密钥"
msgid "Or reset by server"
msgstr "或者重置并下载密钥"
#: users/templates/users/user_update.html:4 users/views/user.py:103
#: users/templates/users/user_pubkey_update.html:94
msgid ""
"The new public key has been set successfully, Please download the "
"corresponding private key."
msgstr "新的公钥已设置成功,请下载对应的私钥"
#: users/templates/users/user_update.html:4 users/views/user.py:104
msgid "Update user"
msgstr "更新用户"
...
...
@@ -2992,7 +2998,7 @@ msgstr "用户组授权资产"
msgid "Please enable cookies and try again."
msgstr "设置你的浏览器支持cookie"
#: users/views/login.py:128 users/views/user.py:
498 users/views/user.py:523
#: users/views/login.py:128 users/views/user.py:
501 users/views/user.py:526
msgid "MFA code invalid"
msgstr "MFA码认证失败"
...
...
@@ -3033,7 +3039,7 @@ msgstr "Token错误或失效"
msgid "Password not same"
msgstr "密码不一致"
#: users/views/login.py:239 users/views/user.py:11
5 users/views/user.py:396
#: users/views/login.py:239 users/views/user.py:11
6 users/views/user.py:399
msgid "* Your password does not meet the requirements"
msgstr "* 您的密码不符合要求"
...
...
@@ -3045,46 +3051,46 @@ msgstr "首次登陆"
msgid "Login log list"
msgstr "登录日志"
#: users/views/user.py:12
7
#: users/views/user.py:12
8
msgid "Bulk update user success"
msgstr "批量更新用户成功"
#: users/views/user.py:23
2
#: users/views/user.py:23
3
msgid "Invalid file."
msgstr "文件不合法"
#: users/views/user.py:3
29
#: users/views/user.py:3
30
msgid "User granted assets"
msgstr "用户授权资产"
#: users/views/user.py:36
0
#: users/views/user.py:36
3
msgid "Profile setting"
msgstr "个人信息设置"
#: users/views/user.py:3
79
#: users/views/user.py:3
82
msgid "Password update"
msgstr "密码更新"
#: users/views/user.py:41
4
#: users/views/user.py:41
7
msgid "Public key update"
msgstr "密钥更新"
#: users/views/user.py:45
5
#: users/views/user.py:45
8
msgid "Password invalid"
msgstr "用户名或密码无效"
#: users/views/user.py:5
49
#: users/views/user.py:5
52
msgid "MFA enable success"
msgstr "MFA 绑定成功"
#: users/views/user.py:55
0
#: users/views/user.py:55
3
msgid "MFA enable success, return login page"
msgstr "MFA 绑定成功,返回到登录页面"
#: users/views/user.py:55
2
#: users/views/user.py:55
5
msgid "MFA disable success"
msgstr "MFA 解绑成功"
#: users/views/user.py:55
3
#: users/views/user.py:55
6
msgid "MFA disable success, return login page"
msgstr "MFA 解绑成功,返回登录页面"
apps/users/templates/users/first_login.html
View file @
5f2c31e4
...
...
@@ -138,8 +138,9 @@
}
}).
on
(
'click'
,
'#btn-reset-pubkey'
,
function
()
{
var
the_url
=
'{% url "users:user-pubkey-generate" %}'
;
window
.
open
(
the_url
,
"_blank"
)
})
window
.
open
(
the_url
,
"_blank"
);
$
(
'#fl_form'
).
submit
();
})
</script>
{% endblock %}
apps/users/templates/users/user_pubkey_update.html
View file @
5f2c31e4
...
...
@@ -67,7 +67,7 @@
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 col-lg-2"
style=
"padding-top: 0"
>
{% trans 'Or reset by server' %}
</label>
<div
class=
" col-sm-9 col-lg-9 "
>
<a
href=
"{% url 'users:user-pubkey-generate' %}"
>
{% trans 'Reset' %}
</a>
<a
id=
"reset_pubkey"
href=
"{% url 'users:user-pubkey-generate' %}"
>
{% trans 'Reset' %}
</a>
</div>
</div>
<div
class=
"hr-line-dashed"
></div>
...
...
@@ -89,5 +89,10 @@
{% block custom_foot_js %}
<script
src=
"{% static 'js/plugins/cropper/cropper.min.js' %}"
></script>
<script>
$
(
document
).
ready
(
function
()
{
}).
on
(
'click'
,
'#reset_pubkey'
,
function
()
{
var
message
=
"{% trans 'The new public key has been set successfully, Please download the corresponding private key.' %}"
;
toastr
.
success
(
message
)
})
</script>
{% endblock %}
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