passport.js - For Passport-Local with Node.js, is it possible to authenticate with email rather than username? -


i'm using passport-local provide local authentication on node app. however, change authenticate email address rather username. there way this?

thank you.

since have implement validation (in localstrategy verifier callback), can pass like:

passport.use(new localstrategy(function(email, password, done) {   // search database, or whatever, e-mail address   // , check password... }); 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -