meanjs/mean — pull request #73 by cpacker (2014-05-23 05:17:02+00:00)
Title: Password reset using Nodemailer

## Password reset using Nodemailer ##

An implementation of the password reset feature using Nodemailer based of @sahat's [blog post](http://sahatyalkabov.com/how-to-implement-password-reset-in-nodejs/) adapted for the MEAN stack.

### Config ###
- In file __users.server.controller.js__ under functions __forgot()__ and __resetPost()__ change `service: `, `user: `, `pass: ` and `from:` to match a supported Nodemailer service (default is SendGrid, full list of supported services can be found at the [Nodemailer docs](https://github.com/andris9/Nodemailer)) and your respective credentials.

### Usage ###
- __Forgot your password?__ link provided on the signin page (linked to __/forgot__ page)
- At the __forgot__ page the user inputs their account email and is send an email with a link
- Clicking on the link brings them to a __reset__ page where the user can reset their password

![screen shot 2014-05-22 at 9 47 08 pm](https://cloud.githubusercontent.com/assets/5475622/3063286/539cbbd0-e239-11e3-9cae-54647edd0ba0.png)
![screen shot 2014-05-22 at 9 50 28 pm](https://cloud.githubusercontent.com/assets/5475622/3063287/57139ab8-e239-11e3-833b-410bcf7bca98.png)
![screen shot 2014-05-22 at 9 52 27 pm](https://cloud.githubusercontent.com/assets/5475622/3063288/5a1dd70a-e239-11e3-9ffc-59de0aae4a33.png)