javascript - Send multiple flash messages or context for form validation -


i have passport set-up , validating input in sign-up process. 1 of validation items is:

if (!validateemail(email)) {   console.log('invalid email address')   return done(null, false, req.flash('message', 'invalid email address')) } 

i'd deliver attempted email template , load input. best way can think of doing flash message, try fails work.

any way format multiple flash-messages drops flash session:

{ cookie:    { path: '/',      _expires: null,      originalmaxage: null,      httponly: true },   passport: {},   flash: {} } 

please help!


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -