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
3a10fd41
Commit
3a10fd41
authored
Oct 22, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改查看auth info可以关闭mfa
parent
a2f8f433
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
_asset_user_list.html
apps/assets/templates/assets/_asset_user_list.html
+2
-2
No files found.
apps/assets/templates/assets/_asset_user_list.html
View file @
3a10fd41
...
...
@@ -40,7 +40,7 @@ var prefer = null;
var
lastMFATime
=
"{{ request.session.MFA_VERIFY_TIME }}"
;
var
testDatetime
=
"{% trans 'Test datetime: ' %}"
;
var
mfaVerifyTTL
=
"{{ SECURITY_MFA_VERIFY_TTL }}"
;
var
mfaNeedCheck
=
"{{ SECURITY_VIEW_AUTH_NEED_MFA }}"
;
var
mfaNeedCheck
=
"{{ SECURITY_VIEW_AUTH_NEED_MFA }}"
===
"True"
;
function
initAssetUserTable
()
{
var
options
=
{
...
...
@@ -113,7 +113,7 @@ $(document).ready(function(){
authAssetId
=
$
(
this
).
data
(
"asset"
)
;
authHostname
=
$
(
this
).
data
(
"hostname"
);
authUsername
=
$
(
this
).
data
(
'user'
);
if
(
mfaNeedCheck
!==
'True'
)
{
if
(
!
mfaNeedCheck
)
{
$
(
"#asset_user_auth_view"
).
modal
(
'show'
);
return
}
...
...
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