Message from discussion
Implement Password Reset in Node.js
Received: by 10.224.181.18 with SMTP id bw18mr2291752qab.2.1336924963869;
Sun, 13 May 2012 09:02:43 -0700 (PDT)
X-BeenThere: nodejs@googlegroups.com
Received: by 10.224.111.1 with SMTP id q1ls4242034qap.9.gmail; Sun, 13 May
2012 09:02:26 -0700 (PDT)
Received: by 10.224.184.70 with SMTP id cj6mr2289722qab.3.1336924946542;
Sun, 13 May 2012 09:02:26 -0700 (PDT)
Received: by 10.224.184.70 with SMTP id cj6mr2289720qab.3.1336924946510;
Sun, 13 May 2012 09:02:26 -0700 (PDT)
Return-Path: <hazl...@gmail.com>
Received: from mail-qc0-f170.google.com (mail-qc0-f170.google.com [209.85.216.170])
by gmr-mx.google.com with ESMTPS id a39si6563145qch.0.2012.05.13.09.02.26
(version=TLSv1/SSLv3 cipher=OTHER);
Sun, 13 May 2012 09:02:26 -0700 (PDT)
Received-SPF: pass (google.com: domain of hazl...@gmail.com designates 209.85.216.170 as permitted sender) client-ip=209.85.216.170;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of hazl...@gmail.com designates 209.85.216.170 as permitted sender) smtp.mail=hazl...@gmail.com; dkim=pass header...@gmail.com
Received: by qcmt36 with SMTP id t36so2910521qcm.15
for <nodejs@googlegroups.com>; Sun, 13 May 2012 09:02:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=message-id:date:from:user-agent:mime-version:to:subject:references
:in-reply-to:content-type;
bh=dSrnE2IoSL+i/+8b4a1t7kM4V85i0JONo6T0I5uvtnM=;
b=VXPPZp+s915GxGY+etGtH7FWO1mz4KliryPrvfqa7sUktZQo+TVmCd1M5G8IuPxVRS
Z5oKej650iaD8uPFifHcSwr7sje2bKN+b7I5TfCvNX/kq4YL4rrEYxC2nImJDn3CXQKr
TDZY/sVrDhIZRupc4EIc0U7GBJT68g0k64zV1wYYY322RIlLlQzwZpvCG4k00maYVwkc
IpuNMh5fxHbtwkuvX1Xs+gP0wg/4DjbQ1E0Wnl/WOoUmjxjEpPBxBlvK+h9pnPs0PU6B
KaNPVK1h5wU9dfewtYD+lXGzQkn2B9NeoJ0vr0nZuqs62+itK5GMwBlXcQAGnRjjSVjR
WqOA==
Received: by 10.224.210.7 with SMTP id gi7mr8045558qab.35.1336924946332;
Sun, 13 May 2012 09:02:26 -0700 (PDT)
Return-Path: <hazl...@gmail.com>
Received: from [192.168.15.64] (d-69-161-78-142.cpe.metrocast.net. [69.161.78.142])
by mx.google.com with ESMTPS id r19sm34439242qae.14.2012.05.13.09.02.24
(version=SSLv3 cipher=OTHER);
Sun, 13 May 2012 09:02:25 -0700 (PDT)
Message-ID: <4FAFDB0F.1020...@gmail.com>
Date: Sun, 13 May 2012 12:02:23 -0400
From: Matthew Hazlett <hazl...@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: nodejs@googlegroups.com
Subject: Re: [nodejs] Implement Password Reset in Node.js
References: <19492686.1649.1336909573059.JavaMail.geo-discussion-forums@ynej5> <CAEdrcivWR=nruyMmzy6Ax7U38VTiE=STK-QzMurHLbKUcNm...@mail.gmail.com> <18A82E16-095E-4AB6-AFB3-2CE1D2BFF...@gmail.com> <14683537.2182.1336923870295.JavaMail.geo-discussion-forums@vbki8>
In-Reply-To: <14683537.2182.1336923870295.JavaMail.geo-discussion-forums@vbki8>
Content-Type: multipart/alternative;
boundary="------------080600070700040900090407"
This is a multi-part message in MIME format.
--------------080600070700040900090407
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
if you use passport then they need to use passport to change their
password.
Anyway I think passport became Windows Live ID.
On 5/13/2012 11:44 AM, Feras Odeh wrote:
> mrdnk,
>
> I used passport for login and authentication. I'm using mongoose for
> MongoDB. Guys is there any sample that implement password reset out there?
>
> Thanks,
> Feras
>
> On Sunday, May 13, 2012 4:10:18 PM UTC+3, mrdnk wrote:
>
> Feras,
>
> Do you have login/user side already built? Did you build it yourself?
>
> Are you using mongoose for your MongoDB?
>
> Srirangan suggestion is what I'd do. If your6're not sure, and
> want some help stick your code on GitHub - and I can give you a hand.
>
> -MRdNk
>
> On 13 May 2012, at 13:28, Srirangan wrote:
>
>> 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 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
>> <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
>> <mailto:nodejs@googlegroups.com>
>> To unsubscribe from this group, send email to
>> nodejs+unsubscribe@googlegroups.com
>> <mailto:nodejs%2Bunsubscribe@googlegroups.com>
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>> <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
>> <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
>> <mailto:nodejs@googlegroups.com>
>> To unsubscribe from this group, send email to
>> nodejs+unsubscribe@googlegroups.com
>> <mailto:nodejs+unsubscribe@googlegroups.com>
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>> <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 nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
--------------080600070700040900090407
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
if you use passport then they need to use passport to change their
password. <br>
Anyway I think passport became Windows Live ID.<br>
<br>
On 5/13/2012 11:44 AM, Feras Odeh wrote:
<blockquote
cite="mid:14683537.2182.1336923870295.JavaMail.geo-discussion-forums@vbki8"
type="cite">mrdnk,<br>
<br>
I used passport for login and authentication. I'm using mongoose
for MongoDB. Guys is there any sample that implement password
reset out there?<br>
<br>
Thanks,<br>
Feras<br>
<br>
On Sunday, May 13, 2012 4:10:18 PM UTC+3, mrdnk wrote:
<blockquote class="gmail_quote" style="margin: 0;margin-left:
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div bgcolor="#FFFFFF">
<div>Feras,</div>
<div><br>
</div>
<div>Do you have login/user side already built? Did you build
it yourself?</div>
<div><br>
</div>
<div>Are you using mongoose for your MongoDB?</div>
<div><br>
</div>
<div><span>Srirangan suggestion is what I'd do. If your6</span><span>'re
not sure, and want some help stick your code on GitHub -
and I can give you a hand.</span></div>
<div><span><br>
</span></div>
<div><span>-MRdNk<br>
</span><br>
On 13 May 2012, at 13:28, Srirangan wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div>Persist a reset key in your database along with a
timestamp. </div>
<div><br>
</div>
<div>Create a route accepting the reset key and new
password. </div>
<div><br>
</div>
<div>Verify the reset key's timestamp when applying the
new password to the user.</div>
<div><br>
</div>
<div>- Sri</div>
<br clear="all">
<font face="'times new roman', serif">Srirangan</font><span
style="font-family:'times new roman',serif"> | +91
9711 477 595</span><span style="font-family:'times new
roman',serif"> | </span><font face="'times new roman',
serif"><a moz-do-not-send="true"
href="http://srirangan.net/about" target="_blank">About</a> <a
moz-do-not-send="true"
href="https://github.com/Srirangan" target="_blank">GitHub</a> <a
moz-do-not-send="true"
href="http://www.linkedin.com/in/srirangan"
target="_blank">LinkedIn</a> <a
moz-do-not-send="true"
href="http://twitter.com/srirangan" target="_blank">Twi<wbr>tter</a> |
<a moz-do-not-send="true" href="http://review19.com"
target="_blank">Review19</a> "Collaborate & Track
Decisions"</font><br>
<br>
<br>
<div class="gmail_quote">On Sun, May 13, 2012 at 5:16 PM,
Feras Odeh wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<p
style="clear:both;text-align:left;font-size:14px;font-family:Arial,'Liberation
Sans','DejaVu
Sans',sans-serif;word-wrap:break-word;background-image:initial">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?</p>
<p
style="clear:both;text-align:left;font-size:14px;font-family:Arial,'Liberation
Sans','DejaVu
Sans',sans-serif;word-wrap:break-word;background-image:initial">Thanks,</p>
<p
style="clear:both;text-align:left;font-size:14px;font-family:Arial,'Liberation
Sans','DejaVu
Sans',sans-serif;word-wrap:break-word;background-image:initial">
Feras</p>
<span><font color="#888888">
-- <br>
Job Board: <a moz-do-not-send="true"
href="http://jobs.nodejs.org/" target="_blank">http://jobs.nodejs.org/</a><br>
Posting guidelines: <a moz-do-not-send="true"
href="https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines"
target="_blank">https://github.com/joyent/<wbr>node/wiki/Mailing-List-<wbr>Posting-Guidelines</a><br>
You received this message because you are
subscribed to the Google<br>
Groups "nodejs" group.<br>
To post to this group, send email to <a
moz-do-not-send="true"
href="mailto:nodejs@googlegroups.com"
target="_blank">nodejs@googlegroups.com</a><br>
To unsubscribe from this group, send email to<br>
<a moz-do-not-send="true"
href="mailto:nodejs%2Bunsubscribe@googlegroups.com"
target="_blank">nodejs+unsubscribe@<wbr>googlegroups.com</a><br>
For more options, visit this group at<br>
<a moz-do-not-send="true"
href="http://groups.google.com/group/nodejs?hl=en?hl=en"
target="_blank">http://groups.google.com/<wbr>group/nodejs?hl=en?hl=en</a><br>
</font></span></blockquote>
</div>
<br>
-- <br>
Job Board: <a moz-do-not-send="true"
href="http://jobs.nodejs.org/" target="_blank">http://jobs.nodejs.org/</a><br>
Posting guidelines: <a moz-do-not-send="true"
href="https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines"
target="_blank">https://github.com/joyent/<wbr>node/wiki/Mailing-List-<wbr>Posting-Guidelines</a><br>
You received this message because you are subscribed to
the Google<br>
Groups "nodejs" group.<br>
To post to this group, send email to <a
moz-do-not-send="true"
href="mailto:nodejs@googlegroups.com" target="_blank">nodejs@googlegroups.com</a><br>
To unsubscribe from this group, send email to<br>
<a moz-do-not-send="true"
href="mailto:nodejs+unsubscribe@googlegroups.com"
target="_blank">nodejs+unsubscribe@<wbr>googlegroups.com</a><br>
For more options, visit this group at<br>
<a moz-do-not-send="true"
href="http://groups.google.com/group/nodejs?hl=en?hl=en"
target="_blank">http://groups.google.com/<wbr>group/nodejs?hl=en?hl=en</a><br>
</div>
</blockquote>
</div>
</blockquote>
-- <br>
Job Board: <a moz-do-not-send="true"
href="http://jobs.nodejs.org/">http://jobs.nodejs.org/</a><br>
Posting guidelines: <a moz-do-not-send="true"
href="https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines">https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines</a><br>
You received this message because you are subscribed to the Google<br>
Groups "nodejs" group.<br>
To post to this group, send email to <a class="moz-txt-link-abbreviated" href="mailto:nodejs@googlegroups.com">nodejs@googlegroups.com</a><br>
To unsubscribe from this group, send email to<br>
<a class="moz-txt-link-abbreviated" href="mailto:nodejs+unsubscribe@googlegroups.com">nodejs+unsubscribe@googlegroups.com</a><br>
For more options, visit this group at<br>
<a moz-do-not-send="true"
href="http://groups.google.com/group/nodejs?hl=en?hl=en">http://groups.google.com/group/nodejs?hl=en?hl=en</a><br>
</blockquote>
<br>
</body>
</html>
--------------080600070700040900090407--