mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Disabled auto-fill on password fields. #2410
This commit is contained in:
@@ -156,7 +156,7 @@ export default class SubscriptionSchema extends BaseUISchema{
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'password', label: gettext('Password'), type: 'password',
|
id: 'password', label: gettext('Password'), type: 'password',
|
||||||
controlProps: { maxLength: null},
|
controlProps: { maxLength: null, autoComplete: 'new-password' },
|
||||||
group: gettext('Connection'),
|
group: gettext('Connection'),
|
||||||
mode: ['create', 'edit'], skipChange: true,
|
mode: ['create', 'edit'], skipChange: true,
|
||||||
deps: ['connect_now'],
|
deps: ['connect_now'],
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ export default class RoleSchema extends BaseUISchema {
|
|||||||
group: gettext('Definition'), mode: ['edit', 'create'],
|
group: gettext('Definition'), mode: ['edit', 'create'],
|
||||||
control: 'input', deps: ['rolcanlogin'], retype: true,
|
control: 'input', deps: ['rolcanlogin'], retype: true,
|
||||||
cell: 'text', disabled: obj.readOnly,
|
cell: 'text', disabled: obj.readOnly,
|
||||||
|
controlProps: { autoComplete: 'new-password' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'rolvaliduntil', type: 'datetimepicker',
|
id: 'rolvaliduntil', type: 'datetimepicker',
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ class CloudDBCredSchema extends BaseUISchema {
|
|||||||
mode: ['create'], noEmpty: true,
|
mode: ['create'], noEmpty: true,
|
||||||
}, {
|
}, {
|
||||||
id: 'secret_access_key', label: gettext('AWS secret access key'), type: 'password',
|
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',
|
id: 'session_token', label: gettext('AWS session token'), type: 'multiline',
|
||||||
mode: ['create'], noEmpty: false,
|
mode: ['create'], noEmpty: false,
|
||||||
@@ -165,7 +165,7 @@ class DatabaseSchema extends BaseUISchema {
|
|||||||
mode: ['create'], noEmpty: true,
|
mode: ['create'], noEmpty: true,
|
||||||
}, {
|
}, {
|
||||||
id: 'db_password', label: gettext('Password'), type: 'password',
|
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).')
|
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'),
|
id: 'db_confirm_password', label: gettext('Confirm password'),
|
||||||
|
|||||||
@@ -491,7 +491,7 @@ class AzureDatabaseSchema extends BaseUISchema {
|
|||||||
noEmpty: true,
|
noEmpty: true,
|
||||||
helpMessage: gettext(
|
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'
|
'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',
|
id: 'db_confirm_password',
|
||||||
|
|||||||
@@ -421,7 +421,7 @@ class BigAnimalDatabaseSchema extends BaseUISchema {
|
|||||||
},
|
},
|
||||||
},{
|
},{
|
||||||
id: 'password', label: gettext('Database password'), type: 'password',
|
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',
|
id: 'confirm_password', label: gettext('Confirm password'), type: 'password',
|
||||||
mode: ['create'], noEmpty: true,
|
mode: ['create'], noEmpty: true,
|
||||||
|
|||||||
@@ -391,7 +391,7 @@ class GoogleDatabaseSchema extends BaseUISchema {
|
|||||||
noEmpty: true,
|
noEmpty: true,
|
||||||
helpMessage: gettext(
|
helpMessage: gettext(
|
||||||
'Set a password for the default admin user "postgres".'
|
'Set a password for the default admin user "postgres".'
|
||||||
),
|
), controlProps: { autoComplete: 'new-password' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'db_confirm_password',
|
id: 'db_confirm_password',
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export default function ConnectServerContent({closeModal, data, onOK, setHeight}
|
|||||||
</span>
|
</span>
|
||||||
</Box>
|
</Box>
|
||||||
<Box marginTop='12px'>
|
<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)} />
|
onChange={(e)=>onTextChange(e, 'tunnel_password')} onKeyDown={(e)=>onKeyDown(e)} />
|
||||||
</Box>
|
</Box>
|
||||||
<Box marginTop='12px' marginBottom='12px'>
|
<Box marginTop='12px' marginBottom='12px'>
|
||||||
@@ -93,7 +93,7 @@ export default function ConnectServerContent({closeModal, data, onOK, setHeight}
|
|||||||
/* Set only if no tunnel password asked */
|
/* Set only if no tunnel password asked */
|
||||||
firstEleRef.current = ele;
|
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)}/>
|
onChange={(e)=>onTextChange(e, 'password')} onKeyDown={(e)=>onKeyDown(e)}/>
|
||||||
</Box>
|
</Box>
|
||||||
<Box marginTop='12px'>
|
<Box marginTop='12px'>
|
||||||
|
|||||||
Reference in New Issue
Block a user