mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-24 14:02:01 +00:00
perf: 去掉mfa input 的required,以为用户可能没有设置
This commit is contained in:
parent
7d9da9ff66
commit
c5ff0d972b
@ -75,7 +75,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$('.input-style').each(function (i, ele){
|
$('.input-style').each(function (i, ele){
|
||||||
$(ele).attr('name', '').attr('required', false)
|
$(ele).attr('name', '')
|
||||||
})
|
})
|
||||||
|
|
||||||
const currentMFAInputRef = $('#mfa-' + name + ' .input-style')
|
const currentMFAInputRef = $('#mfa-' + name + ' .input-style')
|
||||||
@ -86,7 +86,7 @@
|
|||||||
if (!usernameRef || usernameRef.length === 0) {
|
if (!usernameRef || usernameRef.length === 0) {
|
||||||
currentMFAInputRef.focus()
|
currentMFAInputRef.focus()
|
||||||
}
|
}
|
||||||
currentMFAInputRef.attr('name', 'code').attr('required', true)
|
currentMFAInputRef.attr('name', 'code')
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendChallengeCode(currentBtn) {
|
function sendChallengeCode(currentBtn) {
|
||||||
|
Loading…
Reference in New Issue
Block a user