Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple username fields for local auth #283

Merged
merged 2 commits into from Sep 28, 2016

Conversation

Projects
None yet
3 participants
@sdbondi
Copy link
Contributor

sdbondi commented Aug 30, 2016

"auth": {
  "local": {
   "usernameFields": ["username", "email"]
  }
}

If the request contains username or email (in that order) that will be used
to locate the user.

usernameField still works as before. usernameFields is optional and will override usernameField if both are specified.

Stan Bondi added some commits Aug 30, 2016

Stan Bondi
Stan Bondi

@daffl daffl merged commit ce65cef into feathersjs:master Sep 28, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@sdbondi sdbondi deleted the fixate:feature/usernamefields branch Oct 7, 2016

@sdbondi

This comment has been minimized.

Copy link
Contributor Author

sdbondi commented Nov 3, 2016

Ok, mistake admitting time - this PR depends on a PR in passport-local being merged (jaredhanson/passport-local#148) 😞

@ekryski

This comment has been minimized.

Copy link
Member

ekryski commented Nov 18, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.