ui: cifs: do not send empty user/password
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
070d8a8a24
commit
a1592429a3
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user