test registry config
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user