mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-07 18:58:38 +01:00
Authenticate UI
This commit is contained in:
parent
6785d616d0
commit
e717d99780
14 changed files with 313 additions and 22 deletions
|
|
@ -5,13 +5,16 @@ import {
|
|||
TextInput,
|
||||
PasswordInput,
|
||||
required,
|
||||
email,
|
||||
SimpleForm
|
||||
} from 'react-admin'
|
||||
|
||||
const UserCreate = (props) => (
|
||||
<Create {...props}>
|
||||
<SimpleForm redirect="list">
|
||||
<TextInput source="userName" validate={[required()]} />
|
||||
<TextInput source="name" validate={[required()]} />
|
||||
<TextInput source="email" validate={[required(), email()]} />
|
||||
<PasswordInput source="password" validate={[required()]} />
|
||||
<BooleanInput source="isAdmin" initialValue={false} />
|
||||
</SimpleForm>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue