test registry config

This commit is contained in:
Girish Ramakrishnan
2019-10-23 06:11:17 -07:00
parent 8cdddef077
commit b6f2c94464
2 changed files with 7 additions and 1 deletions

View File

@@ -282,6 +282,7 @@ function setRegistryConfig(req, res, next) {
if (typeof req.body.serverAddress !== 'string') return next(new HttpError(400, 'serverAddress is required'));
if ('username' in req.body && typeof req.body.username !== 'string') return next(new HttpError(400, 'username is required'));
if ('email' in req.body && typeof req.body.email !== 'string') return next(new HttpError(400, 'email is required'));
if ('password' in req.body && typeof req.body.password !== 'string') return next(new HttpError(400, 'password is required'));
settings.setRegistryConfig(req.body, function (error) {