Fixed an issue where passwords entered in the 'Connect To Server' dialog were truncated. Fixes #7440

This commit is contained in:
Nikhil Mohite
2022-06-22 17:35:22 +05:30
committed by Akshay Joshi
parent 93bc1f3c57
commit d90b2621da
6 changed files with 18 additions and 8 deletions

View File

@@ -210,13 +210,16 @@ export default class ServerSchema extends BaseUISchema {
id: 'gss_encrypted', label: gettext('GSS encrypted?'), type: 'switch',
group: gettext('Connection'), mode: ['properties'], visible: obj.isConnected,
},{
id: 'password', label: gettext('Password'), type: 'password', maxlength: null,
id: 'password', label: gettext('Password'), type: 'password',
group: gettext('Connection'),
mode: ['create'],
deps: ['connect_now', 'kerberos_conn'],
visible: function(state) {
return state.connect_now && obj.isNew(state);
},
controlProps: {
maxLength: null
},
disabled: function(state) {return state.kerberos_conn;},
},{
id: 'save_password', label: gettext('Save password?'),
@@ -396,6 +399,9 @@ export default class ServerSchema extends BaseUISchema {
disabled: function(state) {
return !state.use_ssh_tunnel;
},
controlProps: {
maxLength: null
},
readonly: obj.isConnected,
}, {
id: 'save_tunnel_password', label: gettext('Save password?'),