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
Post a Comment