Skip to content
Snippets Groups Projects
Commit 7f5410bf authored by Ferenc Schulcz's avatar Ferenc Schulcz
Browse files

Bugfix: error on empty required fields

parent 5525d930
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ module.exports = function (objectrepository) { ...@@ -21,6 +21,7 @@ module.exports = function (objectrepository) {
typeof contact == 'undefined' || typeof contact == 'undefined' ||
typeof active == 'undefined' typeof active == 'undefined'
) { ) {
res.locals.error = 'Missing some parameters.';
return res.status(400).render('profile'); return res.status(400).render('profile');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment