Persist a reset key in your database along with a timestamp. Create a route accepting the reset key and new password.
Verify the reset key's timestamp when applying the new password to the user. - Sri Srirangan | +91 9711 477 595 | About <http://srirangan.net/about> GitHub <https://github.com/Srirangan> LinkedIn<http://www.linkedin.com/in/srirangan> Twitter <http://twitter.com/srirangan> | Review19 <http://review19.com> "Collaborate & Track Decisions" On Sun, May 13, 2012 at 5:16 PM, Feras Odeh <[email protected]> wrote: > How could I implement password reset in Node.js, express.js and Mongodb? I > want to send user an email with password reset link which is valid for one > hour or two. Is there any existing library that supports this? How could I > implement it? > > Thanks, > > Feras > > -- > 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
