From 1f2d5abbb7963ad57ed2e045ca7f54c01aace8ac Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 21 Mar 2014 20:37:53 -0400 Subject: [PATCH] possible fix for #1256 --- src/controllers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/index.js b/src/controllers/index.js index 0cf3fde55b..924da87bfe 100644 --- a/src/controllers/index.js +++ b/src/controllers/index.js @@ -149,7 +149,7 @@ Controllers.search = function(req, res, next) { }; Controllers.reset = function(req, res, next) { - res.render('reset', { + res.render(req.params.code ? 'reset_code' : 'reset', { reset_code: req.params.code ? req.params.code : null }); };