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

Commit 444d072

Browse files
authored
Merge pull request #18 from augustuswm/master
next is not defined when gsmtp authentication fails
2 parents f800a67 + e1bc174 commit 444d072

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/routes/forgot.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var crypto = require('crypto');
44
var async = require('async');
55
var sendmail = require('../helpers/sendmail');
66

7-
router.post('/', function(req, res)
7+
router.post('/', function(req, res, next)
88
{
99
async.waterfall([
1010
function(done)
@@ -13,7 +13,7 @@ router.post('/', function(req, res)
1313
},
1414
function(token, done)
1515
{
16-
User.getByEmail(req.body.email, function(err, user)
16+
User.getByEmail(req.body.email, function(err, user)
1717
{
1818
if (!user)
1919
{
@@ -48,7 +48,7 @@ router.post('/', function(req, res)
4848
done(err);
4949
});
5050
}
51-
],
51+
],
5252
function(err)
5353
{
5454
if (err) return next(err);

0 commit comments

Comments
 (0)