ui: cifs: do not send empty user/password

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-06 07:38:47 +02:00
parent 070d8a8a24
commit a1592429a3

View File

@ -120,6 +120,19 @@ Ext.define('PVE.storage.CIFSInputPanel', {
onlineHelp: 'storage_cifs',
onGetValues: function(values) {
let me = this;
if (values.password?.length === 0) {
delete values.password;
}
if (values.username?.length === 0) {
delete values.username;
}
return me.callParent([values]);
},
initComponent: function() {
var me = this;