mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-29 16:27:11 +00:00
merge: with dev (#7195)
* fix: 修复登录mfa时,选择了禁用的 * fix: mfa focus Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
parent
9bfbdea508
commit
d6395b64fa
@ -77,6 +77,14 @@
|
|||||||
$('.input-style').each(function (i, ele){
|
$('.input-style').each(function (i, ele){
|
||||||
$(ele).attr('name', '').attr('required', false)
|
$(ele).attr('name', '').attr('required', false)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const currentMFAInput = $('#mfa-' + name + ' .input-style')
|
||||||
|
currentMFAInput.attr('name', 'code').attr('required', true)
|
||||||
|
|
||||||
|
// 登录页时,不应该默认focus
|
||||||
|
if ($('input[name="username"]').length == 0) {
|
||||||
|
currentMFAInput.focus()
|
||||||
|
}
|
||||||
$('#mfa-' + name + ' .input-style')
|
$('#mfa-' + name + ' .input-style')
|
||||||
.attr('name', 'code')
|
.attr('name', 'code')
|
||||||
.attr('required', true)
|
.attr('required', true)
|
||||||
|
Loading…
Reference in New Issue
Block a user