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