Enable to add threepid for create new user

This commit is contained in:
dklimpel 2020-03-27 22:30:13 +01:00
parent 60222c346e
commit b3f937b566

View File

@ -74,6 +74,15 @@ export const UserCreate = props => (
<SimpleForm>
<TextInput source="id" autoComplete="off" validate={validateUser} />
<TextInput source="displayname" />
<ArrayInput source="threepids">
<SimpleFormIterator>
<SelectInput source="medium" choices={[
{ id: 'email', name: 'resources.users.email' },
{ id: 'msisdn', name: 'resources.users.msisdn' },
]} />
<TextInput source="address" />
</SimpleFormIterator>
</ArrayInput>
<PasswordInput source="password" autoComplete="new-password" />
<BooleanInput source="admin" />
</SimpleForm>