Suljettu

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":""}]

Taidot: Express JS, Javascript, JSON, node.js, tietojärjestelmäarkkitehtuuri

Näytä lisää: drupal easy website build, alibaba website build, joomla commerce website build, full website build, teacher rating website build, bid website build, website build bid, poker website build, joomla help custom module, facebook pop answers help, help updating website, magento quickbooks help, express checkout asp website, paypal express checkout

About the Employer:
( 9 reviews ) Donnelly, United States

Projektin tunnus: #13067689

12 freelanceria on tarjonnut keskimäärin 29 $ tähän työhön

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. Lisää

30 $ USD 1 päivässä
(61 arvostelua)
6.3
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 http://www.a2design.biz/portfolio_ Here’s a little video about our team too! ht Lisää

30 $ USD 1 päivässä
(24 arvostelua)
6.7
24 $ USD 1 päivässä
(13 arvostelua)
5.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 :) Lisää

55 $ USD 1 päivässä
(6 arvostelua)
4.7
flyingFreeJin

How are you. I can make sense for your need, set json value in req.flash() I can help you with my experiences. Thanks.

35 $ USD 0 päivässä
(9 arvostelua)
4.1
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 1 päivässä
(7 arvostelua)
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/ASP.NET/C#/Azure/PHP and have worked on several projects end to end.

30 $ USD 2 päivässä
(1 arvostelu)
2.4
25 $ USD 1 päivässä
(2 arvostelua)
1.6
35 $ USD 1 päivässä
(0 arvostelua)
0.0
25 $ USD 1 päivässä
(0 arvostelua)
0.0
kumbhanialex

A proposal has not yet been provided

30 $ USD 1 päivässä
(0 arvostelua)
0.0
natigiat

i can help you with that

15 $ USD 1 päivässä
(0 arvostelua)
0.0