You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
req.assert() checks the req.param() for the input so in you example if you have a form submitting with an email field with the name of email you would use it like:
req.assert('email', 'valid email is required').isEmail()
Hi,
In below statement
req.assert('siddique_bagwan@gmail.com', 'valid email is required').isEmail();
I have entered a correct e mail still isEmail giving error.
If I am wrong then please correct me.
Thanks
Mohd Siddique Bagwan.
The text was updated successfully, but these errors were encountered: