autofocus password

This commit is contained in:
Rudis Muiznieks 2024-04-28 17:08:04 -05:00
parent 2b23c69e83
commit 7f9663322d
Signed by: rudism
GPG key ID: CABF2F86EF7884F9

View file

@ -13,6 +13,7 @@
document.addEventListener("DOMContentLoaded", function() { document.addEventListener("DOMContentLoaded", function() {
document.getElementById('target').value = getParameterByName('target'); document.getElementById('target').value = getParameterByName('target');
document.getElementById('password').focus();
}); });
</script> </script>
<style> <style>
@ -48,7 +49,7 @@
</head> </head>
<body> <body>
<form action='/auth/password' method='post'> <form action='/auth/password' method='post'>
<input type='password' placeholder='Password' name='password' /> <input type='password' placeholder='Password' name='password' id='password' />
<input type='hidden' name='target' id='target' /> <input type='hidden' name='target' id='target' />
<input type='submit' value='Login' /> <input type='submit' value='Login' />
</form> </form>