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
59a69f02
Commit
59a69f02
authored
Jan 15, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修复title显示Jumpserver
parent
39fff235
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
views.py
apps/common/views.py
+6
-3
api.py
apps/perms/api.py
+1
-1
login.html
apps/users/templates/users/login.html
+1
-1
reset_password.html
apps/users/templates/users/reset_password.html
+1
-1
No files found.
apps/common/views.py
View file @
59a69f02
...
...
@@ -27,7 +27,8 @@ class BasicSettingView(AdminUserRequiredMixin, TemplateView):
form
.
save
()
if
"AUTH_LDAP"
in
form
.
cleaned_data
:
ldap_auth_enable
.
send
(
form
.
cleaned_data
[
"AUTH_LDAP"
])
messages
.
success
(
request
,
_
(
"Update setting successfully"
))
msg
=
_
(
"Update setting successfully, please restart program"
)
messages
.
success
(
request
,
msg
)
return
redirect
(
'settings:basic-setting'
)
else
:
context
=
self
.
get_context_data
()
...
...
@@ -52,7 +53,8 @@ class EmailSettingView(AdminUserRequiredMixin, TemplateView):
form
=
self
.
form_class
(
request
.
POST
)
if
form
.
is_valid
():
form
.
save
()
messages
.
success
(
request
,
_
(
"Update setting successfully"
))
msg
=
_
(
"Update setting successfully, please restart program"
)
messages
.
success
(
request
,
msg
)
return
redirect
(
'settings:email-setting'
)
else
:
context
=
self
.
get_context_data
()
...
...
@@ -77,7 +79,8 @@ class LDAPSettingView(AdminUserRequiredMixin, TemplateView):
form
=
self
.
form_class
(
request
.
POST
)
if
form
.
is_valid
():
form
.
save
()
messages
.
success
(
request
,
_
(
"Update setting successfully"
))
msg
=
_
(
"Update setting successfully, please restart program"
)
messages
.
success
(
request
,
msg
)
return
redirect
(
'settings:ldap-setting'
)
else
:
context
=
self
.
get_context_data
()
...
...
apps/perms/api.py
View file @
59a69f02
...
...
@@ -351,7 +351,7 @@ class UserGroupGrantedAssetGroupsApi(ListAPIView):
class
ValidateUserAssetPermissionView
(
APIView
):
permission_classes
=
(
IsAppUser
,)
permission_classes
=
(
Is
SuperUserOr
AppUser
,)
@staticmethod
def
get
(
request
):
...
...
apps/users/templates/users/login.html
View file @
59a69f02
...
...
@@ -6,7 +6,7 @@
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
Jump
S
erver
</title>
<title>
Jump
s
erver
</title>
<link
rel=
"shortcut icon"
href=
"{% static "
img
/
facio
.
ico
"
%}"
type=
"image/x-icon"
>
{% include '_head_css_js.html' %}
<link
href=
"{% static "
css
/
jumpserver
.
css
"
%}"
rel=
"stylesheet"
>
...
...
apps/users/templates/users/reset_password.html
View file @
59a69f02
...
...
@@ -6,7 +6,7 @@
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
Jump
S
erver
</title>
<title>
Jump
s
erver
</title>
<link
rel=
"shortcut icon"
href=
"{% static "
img
/
facio
.
ico
"
%}"
type=
"image/x-icon"
>
{% include '_head_css_js.html' %}
<link
href=
"{% static "
css
/
jumpserver
.
css
"
%}"
rel=
"stylesheet"
>
...
...
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