From 3f8764035d3c20127d3ec5f91c0288b980eceafd Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki <wolfgang.knopki@hft-stuttgart.de> Date: Mon, 9 Dec 2019 15:32:56 +0100 Subject: [PATCH] token reset passwd --- config/config.js | 2 +- routes/routes.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.js b/config/config.js index 04327b8e..bdfbd5a1 100644 --- a/config/config.js +++ b/config/config.js @@ -1,7 +1,7 @@ module.exports = { development: { app: { - hostname: 'm4lab.hft-stuttgart.de/account/', + hostname: 'm4lab.hft-stuttgart.de/account', name: 'User Account Management', hostname: 'm4lab.hft-stuttgart.de/account', port: process.env.PORT || 9989 diff --git a/routes/routes.js b/routes/routes.js index b777a4d7..d4090043 100644 --- a/routes/routes.js +++ b/routes/routes.js @@ -394,6 +394,7 @@ module.exports = function (app, config, passport) { }); app.post('/reset/:token', function(req, res) { + var newPwd = req.body.inputNewPwd methods.checkUserToken(req.params.token, function(err, user){ if (user) { // encrypt password -- GitLab