I am unable to show a flash message of 'You have successfully logged out' when trying to use the req.logout() method using passport-local. Here is wh ...
I am unable to show a flash message of 'You have successfully logged out' when trying to use the req.logout() method using passport-local. Here is wh ...
Whenever I click on the update button it shows such kind of error instead of showing me the form fill field. So help me out with that. ...
This is from YelpCamp, Colt Steele's course. I am getting an error on this line of code in my index.ejs file. I tried this: Then I use the conso ...
I have a collection of users and products. Every user has a 'cart' field which is an array of IDs of the products. When a user clicks on the cart I ne ...
Hello guys i have this problem i have been trying to fix for days now. Am making a post request to my PHP server to fetch results from database. Now a ...
I need help with a little thing. I am rendering a form in an profile.ejs page, which fields are populated by values stored in a mongo database. Now i ...
I have an edit.ejs page to edit a camp , in this page I have two forms , one to submit an edit and the other from to delete the camp, each form has a ...
iam stuck in this for days and cant solve it so please help if u can, iam trying to create an account from form but it send empty stuffs i guess i c ...
I'm making API calls using async fetch. I've used if-else blocks to sanitize the input and give a response accordingly Every time I start my node a ...
I am using express js, and mongoose for fetching data from collection and store it in a list and then send it to an ejs file. But I don't know why the ...
Hello guys I have this server.js setup, and im trying to pass msg "logged out successfully" on /login page when user will log out. The problem here is ...
Im trying to render some API data using express (REST) and EJS (template engine) depending on which value "status" has. If any item in the array conta ...
I'm using EJS for the first and I'm a bit confused. What's happening is that I have a list.ejs file created inside my views file. And a index.html out ...
I am still learning Node.js. I created a server using express documentation and it worked before. But now for a project I have imported some npm packa ...
Am I beginner who trying to learn nodejs and mongodb by learning login register logout..recently I try to add function for file upload but it show err ...
I'm new to ejs and node-js. I started a node project and defined some global vars in my main index.js file at the root directory as follow: g ...
How can I put a button next to each of these "result" items to copy to clipboard? ...
I'm making a for loop in ejs and get this error: Here's my for loop express code: ...
if else conditions working fine in the localhost but not working after I hosted. here I have rendered id and it is working fine in localhost but th ...
--------------This code is written in app.js-------------- -------------This is my list.ejs file--------------- This is the code I want to run. ...