Improve accessibility of form fields in Login

See https://mui.com/material-ui/api/text-field/
This commit is contained in:
François Martin 2025-07-23 23:15:29 +02:00 committed by martinfrancois
parent 97ea32e507
commit 9f3bbd888b
1 changed files with 4 additions and 0 deletions

View File

@ -28,17 +28,21 @@ class Login extends Component<Stores<'currentUser'>> {
<form onSubmit={this.preventDefault} id="login-form">
<TextField
autoFocus
id="username"
className="name"
label="Username"
name="username"
margin="dense"
autoComplete="username"
value={username}
onChange={(e) => (this.username = e.target.value)}
/>
<TextField
id="password"
type="password"
className="password"
label="Password"
name="password"
margin="normal"
autoComplete="current-password"
value={password}