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 }); };