Fixed browser autocomplete related issues on pgAdmin authentication related pages. #7082

This commit is contained in:
Aditya Toshniwal
2023-12-28 16:29:15 +05:30
parent 01a118d495
commit e837de5e8f
5 changed files with 19 additions and 10 deletions

View File

@@ -122,13 +122,17 @@ class UserManagementCollection extends BaseUISchema {
}
}, {
id: 'newPassword', label: gettext('New password'), cell: 'password',
minWidth: 90, width: 90, deps: ['auth_source'],
minWidth: 90, width: 90, deps: ['auth_source'], controlProps: {
autoComplete: 'new-password',
},
editable: (state)=> {
return obj.isEditable(state) && state.auth_source == AUTH_METHODS['INTERNAL'];
}
}, {
id: 'confirmPassword', label: gettext('Confirm password'), cell: 'password',
minWidth: 90, width: 90, deps: ['auth_source'],
minWidth: 90, width: 90, deps: ['auth_source'], controlProps: {
autoComplete: 'new-password',
},
editable: (state)=> {
return obj.isEditable(state) && state.auth_source == AUTH_METHODS['INTERNAL'];
}