I'm having trouble registering a user with expressjs/mongoose as I keep receiving the error:
TypeError: Cannot read property 'user_first_name' of undefined
at C:\Quiz webPolitica\server.js:20:24
at Layer.handle [as handle_request] (C:\Quiz webPolitica\node_modules\express\lib\router\layer.js:95:5)
...
I've been debugging for hours and searching for solutions, but haven't made any progress. Any assistance would be greatly appreciated. Here's my code:
server.js
...
index.html
...
Additionally, I need help redirecting to a new page after registration is complete. My current approach "app.use(express.static(__dirname + '/user_profile.html'));" seems incorrect. Can anyone provide guidance on how to achieve this properly?