Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

passport-local suggestion #138

Closed
ianhead88 opened this issue Aug 13, 2014 · 0 comments
Closed

passport-local suggestion #138

ianhead88 opened this issue Aug 13, 2014 · 0 comments

Comments

@ianhead88
Copy link

i needed to recode this for email/password authentication instead of username/password. doing so was pretty straightforward, except for a some indexing collision error. the fix was to remove the index on "username." to do so, i followed mongoosejs official documentation, where they recommend disabling auto index anyway. some people may like it, but it just caused a like of headaches/debugging for me.

MongooseJS documentation says:

animalSchema.set('autoIndex', false);
// or
new Schema({..}, { autoIndex: false });

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants