Let password managers save the dashboard password

A lone password field is usually ignored: managers key a saved entry on
(origin, username), and with no username there is nothing to key on. There is
only ever one account here, so the hidden field carries a fixed value and the
server never reads it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
TCFDONMEZ
2026-10-08 14:39:46 +03:00
co-authored by Claude Opus 5
parent b45874c405
commit 44bf7ceb3d
+14
View File
@@ -15,6 +15,20 @@ export default async function LoginPage({
<form className="login-card" action="/api/session" method="post">
<h1 className="title">FatihsMG4</h1>
<p className="subtitle">Tüketim ve şarj geçmişi</p>
{/*
A hidden username so password managers will offer to save this.
Most of them ignore a lone password field — they key a saved entry on
(origin, username), and with nothing to key on they stay quiet. There is only
ever one account here, so the value is fixed and the server never reads it.
*/}
<input
type="text"
name="username"
value="fatih"
autoComplete="username"
readOnly
hidden
/>
<input
className="field"
type="password"