auth0-blog / nodejs-jwt-authentication-sample

A NodeJS API that supports username and password authentication with JWTs
MIT License
688 stars 267 forks source link

Allow for front end to send either username or email as user scheme #5

Closed chenkie closed 8 years ago

chenkie commented 9 years ago

The aureliauth package assumes an email address is used for logging in. This addition gives people a choice of using a username or email as the user scheme for registration and login.

chenkie commented 9 years ago

Added in a function to take care of it. Let me know if you think this will work!

mgonto commented 9 years ago

A few comments and ready to merge :).