Do not expose sensible info about users (database credentials)

This commit is contained in:
Daniel García Aubert 2018-02-15 12:24:26 +01:00
parent ea6e8b5315
commit 77b33032e3

View File

@ -107,7 +107,13 @@ JobBase.prototype.validate = function () {
JobBase.prototype.serialize = function () {
var data = JSON.parse(JSON.stringify(this.data));
delete data.host;
delete data.dbuser;
delete data.dbport;
delete data.dbname;
delete data.dbhost;
delete data.dbpass;
return data;
};