mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
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:
parent
0819523a90
commit
614720cb42
@ -39,7 +39,7 @@ export const PasswordField: React.FC = () => {
|
|||||||
}}
|
}}
|
||||||
value={field.value}
|
value={field.value}
|
||||||
onChange={(e: any) => field.setValue(e.target.value)}
|
onChange={(e: any) => field.setValue(e.target.value)}
|
||||||
autoComplete="off"
|
autoComplete="new-password"
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={4}>
|
<Col span={4}>
|
||||||
|
@ -230,6 +230,9 @@ export const usersSchema: ISchema = {
|
|||||||
password: {
|
password: {
|
||||||
'x-component': 'CollectionField',
|
'x-component': 'CollectionField',
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
|
'x-component-props': {
|
||||||
|
autoComplete: 'new-password',
|
||||||
|
},
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
roles: {
|
roles: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user