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

passport-local suggestion #138

@ianhead88

Description

@ianhead88

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 });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions