mirror of https://github.com/jumpserver/jumpserver
perf: 修改名称
parent
d6395b64fa
commit
7d9da9ff66
|
@ -78,17 +78,15 @@
|
||||||
$(ele).attr('name', '').attr('required', false)
|
$(ele).attr('name', '').attr('required', false)
|
||||||
})
|
})
|
||||||
|
|
||||||
const currentMFAInput = $('#mfa-' + name + ' .input-style')
|
const currentMFAInputRef = $('#mfa-' + name + ' .input-style')
|
||||||
currentMFAInput.attr('name', 'code').attr('required', true)
|
currentMFAInputRef.attr('name', 'code').attr('required', true)
|
||||||
|
|
||||||
// 登录页时,不应该默认focus
|
// 登录页时,不应该默认focus
|
||||||
if ($('input[name="username"]').length == 0) {
|
const usernameRef = $('input[name="username"]')
|
||||||
currentMFAInput.focus()
|
if (!usernameRef || usernameRef.length === 0) {
|
||||||
|
currentMFAInputRef.focus()
|
||||||
}
|
}
|
||||||
$('#mfa-' + name + ' .input-style')
|
currentMFAInputRef.attr('name', 'code').attr('required', true)
|
||||||
.attr('name', 'code')
|
|
||||||
.attr('required', true)
|
|
||||||
.focus()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendChallengeCode(currentBtn) {
|
function sendChallengeCode(currentBtn) {
|
||||||
|
|
Loading…
Reference in New Issue