mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
Disabled auto-fill on password fields. #2410
This commit is contained in:
parent
f88c89f3eb
commit
7c6fdcb12e
@ -156,7 +156,7 @@ export default class SubscriptionSchema extends BaseUISchema{
|
||||
},
|
||||
{
|
||||
id: 'password', label: gettext('Password'), type: 'password',
|
||||
controlProps: { maxLength: null},
|
||||
controlProps: { maxLength: null, autoComplete: 'new-password' },
|
||||
group: gettext('Connection'),
|
||||
mode: ['create', 'edit'], skipChange: true,
|
||||
deps: ['connect_now'],
|
||||
|
@ -93,6 +93,7 @@ export default class RoleSchema extends BaseUISchema {
|
||||
group: gettext('Definition'), mode: ['edit', 'create'],
|
||||
control: 'input', deps: ['rolcanlogin'], retype: true,
|
||||
cell: 'text', disabled: obj.readOnly,
|
||||
controlProps: { autoComplete: 'new-password' },
|
||||
},
|
||||
{
|
||||
id: 'rolvaliduntil', type: 'datetimepicker',
|
||||
|
@ -97,7 +97,7 @@ class CloudDBCredSchema extends BaseUISchema {
|
||||
mode: ['create'], noEmpty: true,
|
||||
}, {
|
||||
id: 'secret_access_key', label: gettext('AWS secret access key'), type: 'password',
|
||||
mode: ['create'], noEmpty: true,
|
||||
mode: ['create'], noEmpty: true, controlProps: { autoComplete: 'new-password' },
|
||||
}, {
|
||||
id: 'session_token', label: gettext('AWS session token'), type: 'multiline',
|
||||
mode: ['create'], noEmpty: false,
|
||||
@ -165,7 +165,7 @@ class DatabaseSchema extends BaseUISchema {
|
||||
mode: ['create'], noEmpty: true,
|
||||
}, {
|
||||
id: 'db_password', label: gettext('Password'), type: 'password',
|
||||
mode: ['create'], noEmpty: true,
|
||||
mode: ['create'], noEmpty: true, controlProps: { autoComplete: 'new-password' },
|
||||
helpMessage: gettext('At least 8 printable ASCII characters. Cannot contain any of the following: / (slash), \'(single quote), "(double quote) and @ (at sign).')
|
||||
}, {
|
||||
id: 'db_confirm_password', label: gettext('Confirm password'),
|
||||
|
@ -491,7 +491,7 @@ class AzureDatabaseSchema extends BaseUISchema {
|
||||
noEmpty: true,
|
||||
helpMessage: gettext(
|
||||
'The password must be 8-128 characters long and must contain characters from three of the following categories - English uppercase letters, English lowercase letters, numbers (0-9), and non-alphanumeric characters (!, $, #, %, etc.), and cannot contain all or part of the login name'
|
||||
),
|
||||
), controlProps: { autoComplete: 'new-password' }
|
||||
},
|
||||
{
|
||||
id: 'db_confirm_password',
|
||||
|
@ -421,7 +421,7 @@ class BigAnimalDatabaseSchema extends BaseUISchema {
|
||||
},
|
||||
},{
|
||||
id: 'password', label: gettext('Database password'), type: 'password',
|
||||
mode: ['create'], noEmpty: true,
|
||||
mode: ['create'], noEmpty: true, controlProps: { autoComplete: 'new-password' }
|
||||
},{
|
||||
id: 'confirm_password', label: gettext('Confirm password'), type: 'password',
|
||||
mode: ['create'], noEmpty: true,
|
||||
|
@ -391,7 +391,7 @@ class GoogleDatabaseSchema extends BaseUISchema {
|
||||
noEmpty: true,
|
||||
helpMessage: gettext(
|
||||
'Set a password for the default admin user "postgres".'
|
||||
),
|
||||
), controlProps: { autoComplete: 'new-password' }
|
||||
},
|
||||
{
|
||||
id: 'db_confirm_password',
|
||||
|
@ -70,7 +70,7 @@ export default function ConnectServerContent({closeModal, data, onOK, setHeight}
|
||||
</span>
|
||||
</Box>
|
||||
<Box marginTop='12px'>
|
||||
<InputText inputRef={firstEleRef} type="password" value={formData['tunnel_password']} controlProps={{maxLength:null}}
|
||||
<InputText inputRef={firstEleRef} type="password" value={formData['tunnel_password']} controlProps={{maxLength:null, autoComplete:'new-password'}}
|
||||
onChange={(e)=>onTextChange(e, 'tunnel_password')} onKeyDown={(e)=>onKeyDown(e)} />
|
||||
</Box>
|
||||
<Box marginTop='12px' marginBottom='12px'>
|
||||
@ -93,7 +93,7 @@ export default function ConnectServerContent({closeModal, data, onOK, setHeight}
|
||||
/* Set only if no tunnel password asked */
|
||||
firstEleRef.current = ele;
|
||||
}
|
||||
}} type="password" value={formData['password']} controlProps={{maxLength:null}}
|
||||
}} type="password" value={formData['password']} controlProps={{maxLength:null, autoComplete:'new-password'}}
|
||||
onChange={(e)=>onTextChange(e, 'password')} onKeyDown={(e)=>onKeyDown(e)}/>
|
||||
</Box>
|
||||
<Box marginTop='12px'>
|
||||
|
Loading…
Reference in New Issue
Block a user