On Nov 20, 2012, at 04:54, Tauren Mills <tau...@tauren.com> wrote:

> The pass-reset module was developed to support our use cases:
> 
> 1. User enters a username such as "tomsmith". Only one user may have this 
> username, so the email that is sent includes only a single code.
> 
> 2. User enters an email address. Our service allows multiple users to be 
> created with the same email address. The email sent will need to list all of 
> the users with that email address and a reset code for each of them.

That makes sense.

> It sounds like a configuration option might be desirable for pass-reset to 
> support single user vs multi-user modes. Would this make it easier to use in 
> a system that doesn't allow multiple users with the same email address?

I wouldn't bother with a config option, if you explain the above in the readme 
or in an example.

I was able to simplify my email templates by only passing them resets[0], which 
seems simple enough to me.


-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to