Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.post('/search', function (req, res) {
- if(req.session.userid)
- {
- cusdtl.GetCustomerDetails (req, function (data)
- {
- if ( data.code != 200 )
- {
- req.flash('info', data.message );
- res.redirect('/custmgmt');
- }
- else
- {
- res.render('showuserdetails.pug', {email:data.userEmail, name:data.userName });
- }
- });
- }
- else
- {
- res.redirect('/login');
- }});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement