Never send passwords to the UI

This commit is contained in:
Deluan
2021-04-29 20:04:01 -04:00
parent 71dc0dddaf
commit eaf40efdf4
4 changed files with 10 additions and 5 deletions
+4 -1
View File
@@ -61,7 +61,10 @@ const UserEdit = (props) => {
{...getNameHelperText()}
/>
<TextInput source="email" validate={[email()]} />
<PasswordInput source="password" validate={[required()]} />
<PasswordInput
source="password"
label={translate('resources.user.fields.changePassword')}
/>
{permissions === 'admin' && (
<BooleanInput source="isAdmin" initialValue={false} />
)}