You make an excellent observation. Token storage should be configurable as
well and not only support in-memory storage. We've just pushed an update
that should allow this to happen. Here's an example using redis:

https://github.com/SportZing/node-pass-reset#example-custom-storage-for-tokens

Note that this latest update hasn't been thoroughly tested yet. If you find
any issues, please let me know or submit a pull request.

I'm interested to know if the module works out for you, as well as any
other features it is lacking.

Tauren



On Sun, Oct 21, 2012 at 11:16 AM, Ryan Schmidt
<[email protected]>wrote:

>
> On Oct 20, 2012, at 15:58, Tauren Mills wrote:
>
> > We've written a password reset module that might help:
> > https://github.com/SportZing/node-pass-reset
> > https://npmjs.org/package/pass-reset
> >
> > It was built in a way that is completely agnostic to the user's choice
> of database, web framework, auth framework, mailer, email templating, etc.
> The reset token expiration is configurable and you supply your own
> callbacks for userLookup, setPassword, sendEmail, etc.
> >
> > It includes thorough documentation including example usage showing it
> being used with Express and Handlebars (for email template). There are also
> buster.js tests included.
> >
> > Check it out and see if it might help. I'd certainly be interested in
> any improvement suggestions.
>
> Thanks! I'll certainly try it out.
>
> The readme doesn't mention, but it seems to store the reset tokens in
> memory? If I want to use cluster or multiple servers then I'll need to
> persist them. It seems to be designed so that I can just replace
> passReset._storage with my own implementation? Could you add an example of
> that?
>
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to