Make verifyDnsConfig take zone name

part of #110
This commit is contained in:
Girish Ramakrishnan
2017-06-11 22:32:05 -07:00
parent 865c0a7aa7
commit 9ead482dc6
11 changed files with 44 additions and 23 deletions

View File

@@ -199,7 +199,7 @@ function setDnsConfig(req, res, next) {
if (typeof req.body.provider !== 'string') return next(new HttpError(400, 'provider is required'));
settings.setDnsConfig(req.body, config.fqdn(), function (error) {
settings.setDnsConfig(req.body, config.fqdn(), config.zoneName(), function (error) {
if (error && error.reason === SettingsError.BAD_FIELD) return next(new HttpError(400, error.message));
if (error) return next(new HttpError(500, error));