Skip to content

Commit 4f8cbe9

Browse files
authored
Merge pull request #527 from joleaf/feature/tagged-login-fields
Add a form html tag to the login form enabling autocomplete for password managers
2 parents 1774114 + 244b956 commit 4f8cbe9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

timetagger/pages/login.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@ async function load() {
6666
window.addEventListener('load', load);
6767
</script>
6868

69-
<input id='input_u' type='text' placeholder='username' style='margin:4px;'/><br />
70-
<input id='input_p' type='password' placeholder='password' style='margin:4px;'/><br />
71-
<button id='submit_up' class='whitebutton' style='margin:4px;' >Submit</button>
72-
69+
<form onsubmit="event.preventDefault()">
70+
<input id='input_u' type='text' placeholder='username' style='margin:4px;'><br />
71+
<input id='input_p' type='password' placeholder='password' style='margin:4px;'><br />
72+
<button id='submit_up' class='whitebutton' style='margin:4px;' >Submit</button>
73+
</form>
7374
<br />
7475
<button id='submit_localhost' class='whitebutton' style='margin:4px; display: none;' >Login as default user (on localhost)</button>
7576

0 commit comments

Comments
 (0)