diff --git a/controllers/forms/create.js b/controllers/forms/create.js index 93d19510..228a3c44 100644 --- a/controllers/forms/create.js +++ b/controllers/forms/create.js @@ -26,10 +26,6 @@ module.exports = async (req, res, next) => { if (!req.body.name || req.body.name.length <= 0) { errors.push('Missing name'); } - if (!req.body.description || req.body.description.length <= 0) { - errors.push('Missing description'); - } - //other validation if (req.body.uri) { if (req.body.uri.length > globalLimits.fieldLength.uri) { diff --git a/views/pages/create.pug b/views/pages/create.pug index 1b38f095..cf8926eb 100644 --- a/views/pages/create.pug +++ b/views/pages/create.pug @@ -15,7 +15,7 @@ block content input(type='text', name='name', maxlength=globalLimits.fieldLength.boardname required) .row .label Description - input(type='text', name='description', maxlength=globalLimits.fieldLength.description required) + input(type='text', name='description', maxlength=globalLimits.fieldLength.description) .row .label Tags textarea(name='tags' placeholder='Newline separated, max 10')