mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-01 16:07:47 +01:00
Never send passwords to the UI
This commit is contained in:
parent
71dc0dddaf
commit
eaf40efdf4
4 changed files with 10 additions and 5 deletions
|
|
@ -86,7 +86,8 @@
|
|||
"updatedAt": "Updated at",
|
||||
"name": "Name",
|
||||
"password": "Password",
|
||||
"createdAt": "Created at"
|
||||
"createdAt": "Created at",
|
||||
"changePassword": "Change Password"
|
||||
},
|
||||
"helperTexts": {
|
||||
"name": "Changes to your name will only be reflected on next login"
|
||||
|
|
|
|||
|
|
@ -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} />
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue