Skip to content

the async version doesn't work -- and here is why #1

@niftylettuce

Description

@niftylettuce

I was browsing your source and saw you didn't know why async version wasn't working

compare your code with this module

https://github.com/tblobaum/mongoose-troop/blob/master/lib/basicAuth.js

you'll see you need to call it on the .pre('save') event, and not try to set a field value sync.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions