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
Post a Comment