i am creating a calendar app that lets user store events, birthdays and meeting. design and working of calendar is ready.so whenever user logs in i want to redirect them from localhost:3000/ to localhost:3000/calander for that i have written the code. which woks perfectly until redirection. so after i authenticate user i redirect them to /calander. i have specified route for that which you can see in the screenshot. but after successful login nothing happens. so i inspected the response in inspect element tab. i found that .ejs file is coming in response but browser is not rendering it.should i write the code for redirection on client side or is it something i'm missing?inDataBase function checks password and email.i have used express and mongoDB.https://i.redd.it/r1ywagy5gca21.png
Submitted January 14, 2019 at 07:48AM by viraj47
No comments:
Post a Comment