Question

Authentication system with node, passport, ejs, mongodb

Hey, I have been trying to build an authentication system where I have taken more fields other than, the username and password. I wish to register a user and then, redirect him to a page but what happens is that after successful registration, the page is shown in the network tab of the developer’s console but not on the browser screen.I am using EJS, nodejs, mongo and express and passport


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

Do you see any errors in the console as well? Also is the web application that you are building open source? If this is the case can you share a link to the source code here?

Additionally, here is a good tutorial which I could suggest starting with:

https://www.digitalocean.com/community/tutorials/api-authentication-with-json-web-tokensjwt-and-passport

Regards, Bobby