diff --git a/routes/index.js b/routes/index.js index 89e5cb0..b3a1097 100644 --- a/routes/index.js +++ b/routes/index.js @@ -39,15 +39,10 @@ router.route('/login') companyName : 'SALAH', error : 'Please confirm your email' }); - } else if (data[0] == 401){ - res.render('pages/login', { - companyName : 'SALAH', - error : 'Invalid Credential' - }); } else { res.render('pages/login', { companyName : 'SALAH', - error : 'Something went wrong !!!' + error : 'Invalid Email or Password' }); } });