joshuaslate / mern-starter

A simple starter/seed project for a fullstack JavaScript app using MongoDB, Express, React, and Node.
http://slatepeak.com
Apache License 2.0
536 stars 180 forks source link

Is there an option to verify user emails? #8

Open jay-jlm opened 7 years ago

jay-jlm commented 7 years ago

Most sites require you to click a link in the email before your account gets validated but I was not able to find this. Let me know why you decided not to include this functionality

joshuaslate commented 7 years ago

I didn't implement this due to time constraints. The API would look similar to the password reset API though, with hashing a token, emailing that, and setting up a confirmation endpoint.

jay-jlm commented 7 years ago

Here's my initial implementation of this functionality (server side only and not fully tested): https://gist.github.com/jay-at-avido/d6c5bf0e42f820fb19679343261e3163

joshuaslate commented 7 years ago

Thank you, I will review this when I get a chance and implement it as well!