Do not expose sensible info about users (database credentials)
This commit is contained in:
parent
ea6e8b5315
commit
77b33032e3
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user