Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #18 from augustuswm/master
Browse files Browse the repository at this point in the history
next is not defined when gsmtp authentication fails
  • Loading branch information
chipbell4 authored Aug 21, 2018
2 parents f800a67 + e1bc174 commit 444d072
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/routes/forgot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var crypto = require('crypto');
var async = require('async');
var sendmail = require('../helpers/sendmail');

router.post('/', function(req, res)
router.post('/', function(req, res, next)
{
async.waterfall([
function(done)
Expand All @@ -13,7 +13,7 @@ router.post('/', function(req, res)
},
function(token, done)
{
User.getByEmail(req.body.email, function(err, user)
User.getByEmail(req.body.email, function(err, user)
{
if (!user)
{
Expand Down Expand Up @@ -48,7 +48,7 @@ router.post('/', function(req, res)
done(err);
});
}
],
],
function(err)
{
if (err) return next(err);
Expand Down

0 comments on commit 444d072

Please sign in to comment.