From 0685fe9df4b3f3d62686dc1f2841cb17f4da45ab Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 29 Jun 2021 10:25:11 +0000 Subject: Fix change password missing variable. --- server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server.js b/server.js index 9634a78..e3cf419 100644 --- a/server.js +++ b/server.js @@ -441,6 +441,7 @@ app.post('/reset_password', function (req, res) { app.post('/change_password', must_be_logged_in, function (req, res) { try { + let name = req.user.name; let password = req.body.password; let newpass = req.body.newpass; LOG(req, "POST /change_password", name); -- cgit v1.2.3