'use strict';

var form = require('express-form')
  , field = form.field;

module.exports = form(
  field('settingForm[app:title]').trim(),
  field('settingForm[app:siteUrl]').trim().required().isUrl(),
  field('settingForm[app:confidential]'),
  field('settingForm[app:globalLang]'),
  field('settingForm[app:fileUpload]').trim().toBooleanStrict()
);

