Merge pull request #2188 from Haokun-Chen/1849

fix credential form private key passphrase and authorize password error
This commit is contained in:
Haokun Chen
2018-06-19 11:11:30 -04:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -62,6 +62,9 @@ function AddCredentialsController (models, $state, $scope, strings, componentsSt
delete data.inputs[gceFileInputSchema.id];
}
const filteredInputs = _.omit(data.inputs, (value) => value === '');
data.inputs = filteredInputs;
return credential.request('post', { data });
};

View File

@@ -113,6 +113,9 @@ function EditCredentialsController (models, $state, $scope, strings, componentsS
delete data.inputs[gceFileInputSchema.id];
}
const filteredInputs = _.omit(data.inputs, (value) => value === '');
data.inputs = filteredInputs;
return credential.request('put', { data });
};