Hi JOhno I am searching for a similar "standard" login/auth module. Did you ever find one / build your own? If you could share the code that you used I, and I'm sure other people looking for something similar, would really appreciate it.
Thanks, Rory On Sunday, 13 May 2012 21:57:31 UTC-3, John wrote: > > is there a "standard" node login/auth module that does all the "normal" > needed stuff: > register a user - send confirmation email > authenticate the login (username/email + salted/hashed password) > validate/escape, .... > authorize some role / user info into a cookie > allow password reset > send forgotten email > (did I forget anything basic ?) > > then maybe another separate module that uses facebook/google/... > (external) login > > if not, it's really time that everyone rallies behind one. it seems so > redundant / unproductive / time-wasting for everyone to keep writing > this same stuff for every application - it's really a case that a > "standard login" source module would suffice for 99% of the time and any > "customization" (ie db or extra register fields) could be easily done > shoving the source into an application lib and simply modifying it. > > then, there could be a separate module for using facebook/google/.... > (external) login service > > > > On 05/13/2012 04:57 PM, Marcos Oliveira wrote: > > Look here: > https://github.com/nodester/nodester/blob/master/lib/reset_password.js > > for the reset password logic and here: > > https://github.com/nodester/nodester/blob/master/scripts/mailer.js for > > the mailer. > > > > It uses CouchDB besides that it's similar to what you need. > > > > -- Marcos > > > > On Sun, May 13, 2012 at 8:44 AM, Feras Odeh<[email protected]<javascript:>> > 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 GitHub LinkedIn Twitter > | > >>> Review19 "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 > >>>> You received this message because you are subscribed to the Google > >>>> Groups "nodejs" group. > >>>> To post to this group, send email to > >>>> [email protected]<javascript:> > >>>> To unsubscribe from this group, send email to > >>>> [email protected] <javascript:> > >>>> 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]<javascript:> > >>> To unsubscribe from this group, send email to > >>> [email protected] <javascript:> > >>> 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]<javascript:> > >> To unsubscribe from this group, send email to > >> [email protected] <javascript:> > >> 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
