initial flow of sending email

This commit is contained in:
Arjun Patel
2019-05-13 00:08:34 -07:00
parent 301190e20c
commit c4dd7cd1fa
5 changed files with 171 additions and 2 deletions
+6
View File
@@ -10,4 +10,10 @@ router.post('/donor/login', auth.donorLogin);
// Check database for org and get token with org role
router.post('/org/login', auth.orgLogin);
// Code and send email for reset password
router.get('/resetpassword', auth.resetPasswordEmail);
// Reset password for either donor or charity after verifying code
router.post('/resetpassword', auth.resetPasswordEmail);
module.exports = router;