fix(andreknie.de): close package two review gaps

This commit is contained in:
2026-07-28 21:13:21 +02:00
parent 8236cce85c
commit 0334252fed
5 changed files with 91 additions and 7 deletions
@@ -23,7 +23,7 @@ router.post('/', resourceLimiter, antiSpam, async (req, res) => {
const errors = {}
if (!name || name.trim().length === 0) errors.name = 'Name ist erforderlich.'
if (name && name.length > 100) errors.name = 'Max. 100 Zeichen.'
if (!email || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) errors.email = 'Gueltige E-Mail erforderlich.'
if (!email || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) errors.email = 'Gültige E-Mail erforderlich.'
if (!company || company.trim().length === 0) errors.company = 'Unternehmen ist erforderlich.'
if (company && company.length > 150) errors.company = 'Max. 150 Zeichen.'
if (!resource_id || !getAvailableResourceIds().includes(resource_id)) {