focus 2fa input

pull/83/head
Aevann 2022-12-25 06:36:13 +02:00
parent c5e782e3f0
commit c0ed424f21
1 changed files with 3 additions and 0 deletions

View File

@ -23,4 +23,7 @@
<small><a href="/lost_2fa">Lost your 2FA device?</a></small>
<button type="submit" class="btn btn-primary login w-100 mt-3" id="login_button">Sign in</button>
</form>
<script>
document.getElementById('2fa_token').focus()
</script>
{% endblock %}