Tuesday, 1 August 2017

How do I set up authentication?

Using NodeJS, MySQL, PassportJS, Passport-LocalRight now I have a register route. In here people will have to fill out an email, username, and password.app.get('/register', function(req, res) { res.render('register'); }); Then after they click submit button I have this post route.app.post('/register', function(req, res) { res.render('register'); }); I found this on github. And I'm wondering how can I apply authentication to my register route. I downloaded all the packages needed already.http://ift.tt/2b4qV8T

Submitted August 02, 2017 at 03:50AM by Vraz_

No comments:

Post a Comment