Disabled auto-fill on password fields. #2410

This commit is contained in:
Pravesh Sharma
2024-04-29 11:44:17 +05:30
committed by GitHub
parent f88c89f3eb
commit 7c6fdcb12e
7 changed files with 9 additions and 8 deletions

View File

@@ -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'),

View File

@@ -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',

View File

@@ -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,

View File

@@ -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',