fix(users): disable browser autofill when setting passwords for users in user management (#6041)

* fix(users): disable browser autofill when setting passwords for users in user management

* chore: update

* fix: update

* chore: update
This commit is contained in:
YANG QIA 2025-01-11 15:12:50 +08:00 committed by GitHub
parent 0819523a90
commit 614720cb42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export const PasswordField: React.FC = () => {
}}
value={field.value}
onChange={(e: any) => field.setValue(e.target.value)}
autoComplete="off"
autoComplete="new-password"
/>
</Col>
<Col span={4}>

View File

@ -230,6 +230,9 @@ export const usersSchema: ISchema = {
password: {
'x-component': 'CollectionField',
'x-decorator': 'FormItem',
'x-component-props': {
autoComplete: 'new-password',
},
required: true,
},
roles: {