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
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
document.addEventListener("DOMContentLoaded", function() {
document.getElementById('target').value = getParameterByName('target');
document.getElementById('password').focus();
});
</script>
<style>
@ -48,7 +49,7 @@
</head>
<body>
<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='submit' value='Login' />
</form>