I am needing some help with express-validator and connect-flash
My current code in my post controller has [login to view URL]('error', errors) the error messages work but are just showing [object Object] instead of the actual message, I can do a [login to view URL](errors) and I get the JSON message for the error, but I want it to display just the msg itself, this is the code:
[login to view URL] = (req, res, next) => {
[login to view URL]('password', 'Password must be at least 4 characters long').len(4);
[login to view URL]('confirmPassword', 'Passwords do not match').equals([login to view URL]);
const errors = [login to view URL]();
if (errors) {
[login to view URL]('error', errors);
return [login to view URL]('/editaccount');
}
and this is what is looks like froma [login to view URL](errors) for the first error:
[{"param":"password","msg":"Password must be at least 4 characters long","value":""}]
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.
Thanks
Arif
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 :)
Regards
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
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.