Focus 2FA token input when missing token or invalid token is submitted
parent
fd0ad438d7
commit
99fbe9515b
|
@ -17,7 +17,7 @@ function load($f) {
|
|||
if (res === 'MissingTotpToken' || res === 'InvalidTotpToken') {
|
||||
$f.find('.one-factor').hide();
|
||||
$f.find('.two-factor').show();
|
||||
$f.find('.two-factor input').val('');
|
||||
$f.find('.two-factor input').val('').focus();
|
||||
$f.find('.submit').attr('disabled', false);
|
||||
if (res === 'InvalidTotpToken') $f.find('.two-factor .error').show();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue