3

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,

2 Answers 2

1

This could actually be a framework agnostic question. I got a lot of information out of this screencast: http://railscasts.com/episodes/274-remember-me-reset-password I know it's Ruby code but the techniques described there were easy to port to node.js.

Sign up to request clarification or add additional context in comments.

2 Comments

this doesn't translate to node + express too well. groups.google.com/forum/#!topic/nodejs/SAl5F8qInfA
@chovy You say it doesn't translate well and then you link to a thread that has nothing to do with my answer. Why doesn't it translate too well?
0

If you're up for using a third-party system, the Stormpath express library covers this in their docs here: https://docs.stormpath.com/nodejs/express/product.html#use-password-reset

I work on this library @ Stormpath, but it covers this use case pretty well. The only other options I'm aware of is to write this stuff raw from scratch.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.