Fermé

NodeJS Express Help?

I am needing some help with express-validator and connect-flash

My current code in my post controller has [url removed, login to view]('error', errors) the error messages work but are just showing [object Object] instead of the actual message, I can do a [url removed, login to view](errors) and I get the JSON message for the error, but I want it to display just the msg itself, this is the code:

[url removed, login to view] = (req, res, next) => {

[url removed, login to view]('password', 'Password must be at least 4 characters long').len(4);

[url removed, login to view]('confirmPassword', 'Passwords do not match').equals([url removed, login to view]);

const errors = [url removed, login to view]();

if (errors) {

[url removed, login to view]('error', errors);

return [url removed, login to view]('/editaccount');

}

and this is what is looks like froma [url removed, login to view](errors) for the first error:

[{"param":"password","msg":"Password must be at least 4 characters long","value":""}]

Compétences : Express JS, Javascript, JSON, node.js, Architecture Logicielle

Voir plus : php registration form passwords match ajax, passwords match afreelancer , getafreelancer passwords match, drupal easy website build, alibaba website build, escort service template website build, young female photographer wishes website build finalised design layout ideas yet open ideasshe wants able upload photos taken, joomla commerce website build, full website build, website build craigslist, teacher rating website build, bid website build, website build bid, poker website build, joomla help custom module, facebook pop answers help, help updating website, access assignment help, magento quickbooks help, express checkout asp website, paypal express checkout

Concernant l'employeur :
( 9 commentaires ) Donnelly, United States

N° du projet : #13067689

12 freelance ont fait une offre moyenne de 29 $ pour ce travail

flyingFreeJin

How are you. I can make sense for your need, set json value in [url removed, login to view]() I can help you with my experiences. Thanks.

35 $ USD en 0 jours
(36 Commentaires)
6.2
arifjaunpur

Hello, I am Sr. web developer have strong debugging and coding skills. I am full stack developer with good knowledge of Java, JavaScript, MySQL, MongoDB, NodeJS, ExpressJS, AngularJS, JQuery, HTML, Bootstrap, etc. Plus

30 $ USD en 1 jour
(77 Commentaires)
6.4
A2Design

Hi, Nice project you have there, let us help you with it! Our team is Russian-Canadian. We code in PHP. Check our recent projects here [url removed, login to view] Here’s a little video about our team too! ht Plus

30 $ USD en 1 jour
(24 Commentaires)
6.7
24 $ USD en 1 jour
(27 Commentaires)
6.0
shafayat1039

Hi, I am Shafayat, I am an M.E.A.N. stack developer. I believe I am one of the best candidates for this job. If you have a minute I would request you to send me a message so we can discuss further specifications :) Plus

55 $ USD en 1 jour
(6 Commentaires)
4.7
NareshBhadresha

hello, This is a very easy bug for me... I can solve it in minutes... You can see my profile, I have experience with node, angular, express... Thank you

10 $ USD en 1 jour
(7 Commentaires)
3.2
beanstalkapps

I am a motivated, individual software programmer from Pune, India. I work in a reputed software organization and specialize in JavaScript/HTML/CSS/[url removed, login to view] and have worked on several projects end to end.

30 $ USD en 2 jours
(1 Commentaire)
2.4
25 $ USD en 1 jour
(2 Commentaires)
1.7
35 $ USD en 1 jour
(0 Commentaires)
0.0
25 $ USD en 1 jour
(0 Commentaires)
0.0
kumbhanialex

A proposal has not yet been provided

30 $ USD en 1 jour
(0 Commentaires)
0.0
natigiat

i can help you with that

15 $ USD en 1 jour
(0 Commentaires)
0.0