Experss validator and ejs how to use it?

17 views
Skip to first unread message

Jose Perez

unread,
Apr 22, 2019, 2:30:55 PM4/22/19
to nodejs
Can someone explain to me how to use express validator middleware v5.x and ejs,
for example I need to validate that the minimal length of username not less than 5 
and then show up any error message produced by the validator on EJS layout.
I know Express validator has a .islenght validation but how to implement this
on my route and then show up the message any message produced by the validator on my EJS layout.
I need just a brief example.



Reply all
Reply to author
Forward
0 new messages