perf: 去掉mfa input 的required,以为用户可能没有设置

pull/7201/head
ibuler 2021-11-15 16:56:56 +08:00 committed by Jiangjie.Bai
parent 7d9da9ff66
commit c5ff0d972b
1 changed files with 2 additions and 2 deletions

View File

@ -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) {