You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
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 });
The text was updated successfully, but these errors were encountered:
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 });
The text was updated successfully, but these errors were encountered: