backups: omit the key and secret fields

part of #615
This commit is contained in:
Girish Ramakrishnan
2019-02-08 22:21:17 -08:00
parent dada79cf65
commit 52289568bf
2 changed files with 27 additions and 9 deletions

View File

@@ -153,7 +153,7 @@ function getBackupConfig(req, res, next) {
settings.getBackupConfig(function (error, config) {
if (error) return next(new HttpError(500, error));
next(new HttpSuccess(200, config));
next(new HttpSuccess(200, settings.removeBackupConfigPrivateFields(config)));
});
}