Skip to content
Snippets Groups Projects
Unverified Commit 0adb13af authored by Hugo Costa's avatar Hugo Costa Committed by Diego Sampaio
Browse files

[IMPROVE] Adding input type=password to AWS secrets fields (#28159)

parent 118a8c9b
No related branches found
No related tags found
No related merge requests found
...@@ -106,20 +106,22 @@ settingsRegistry.addGroup('FileUpload', function () { ...@@ -106,20 +106,22 @@ settingsRegistry.addGroup('FileUpload', function () {
}, },
}); });
this.add('FileUpload_S3_AWSAccessKeyId', '', { this.add('FileUpload_S3_AWSAccessKeyId', '', {
type: 'string', type: 'password',
autocomplete: false,
secret: true,
enableQuery: { enableQuery: {
_id: 'FileUpload_Storage_Type', _id: 'FileUpload_Storage_Type',
value: 'AmazonS3', value: 'AmazonS3',
}, },
secret: true,
}); });
this.add('FileUpload_S3_AWSSecretAccessKey', '', { this.add('FileUpload_S3_AWSSecretAccessKey', '', {
type: 'string', type: 'password',
autocomplete: false,
secret: true,
enableQuery: { enableQuery: {
_id: 'FileUpload_Storage_Type', _id: 'FileUpload_Storage_Type',
value: 'AmazonS3', value: 'AmazonS3',
}, },
secret: true,
}); });
this.add('FileUpload_S3_CDN', '', { this.add('FileUpload_S3_CDN', '', {
type: 'string', type: 'string',
......
...@@ -51,7 +51,7 @@ function PasswordSettingInput({ ...@@ -51,7 +51,7 @@ function PasswordSettingInput({
placeholder={placeholder} placeholder={placeholder}
disabled={disabled} disabled={disabled}
readOnly={readonly} readOnly={readonly}
autoComplete={autocomplete === false ? 'off' : undefined} autoComplete={autocomplete === false ? 'new-password' : undefined}
onChange={handleChange} onChange={handleChange}
/> />
</Field.Row> </Field.Row>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment