diff --git a/files/assets/js/core.js b/files/assets/js/core.js index c01add22f..c0e1e2094 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -791,3 +791,7 @@ function delReport(t, url) { } ); } + +for (const el of document.getElementsByClassName('autofocus')) { + el.focus() +} diff --git a/files/assets/js/login_2fa.js b/files/assets/js/login_2fa.js deleted file mode 100644 index 53e4370aa..000000000 --- a/files/assets/js/login_2fa.js +++ /dev/null @@ -1 +0,0 @@ -document.getElementById('2fa_token').focus(); diff --git a/files/templates/login/forgot_password.html b/files/templates/login/forgot_password.html index 8c55b0134..8698032a7 100644 --- a/files/templates/login/forgot_password.html +++ b/files/templates/login/forgot_password.html @@ -5,7 +5,7 @@ {% block content %}