Make wording of form fields in AddEditUserDialog consistent with the login

The login form says username and password and should be consistently used throughout.
This commit is contained in:
François Martin 2025-07-23 22:57:27 +02:00 committed by GitHub
parent e3f2696f31
commit fc84fb3c8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ export default class AddEditDialog extends Component<IProps, IState> {
autoFocus autoFocus
margin="dense" margin="dense"
className="name" className="name"
label="Name *" label="Username *"
value={name} value={name}
name="username" name="username"
id="username" id="username"
@ -66,7 +66,7 @@ export default class AddEditDialog extends Component<IProps, IState> {
type="password" type="password"
value={pass} value={pass}
fullWidth fullWidth
label={isEdit ? 'Pass (empty if no change)' : 'Pass *'} label={isEdit ? 'Password (empty if no change)' : 'Password *'}
name="password" name="password"
id="password" id="password"
onChange={this.handleChange.bind(this, 'pass')} onChange={this.handleChange.bind(this, 'pass')}
@ -92,7 +92,7 @@ export default class AddEditDialog extends Component<IProps, IState> {
? passPresent ? passPresent
? '' ? ''
: 'password is required' : 'password is required'
: 'name is required' : 'username is required'
}> }>
<div> <div>
<Button <Button