summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-29 10:25:11 +0000
committerTor Andersson <tor@ccxvii.net>2021-06-29 10:25:11 +0000
commit0685fe9df4b3f3d62686dc1f2841cb17f4da45ab (patch)
treeca2ad81c2d358c2d52f883e1e90fadcabc28e112
parent401a13ff9e7792f0e060ccfb15afdbd3bc5fc557 (diff)
downloadserver-0685fe9df4b3f3d62686dc1f2841cb17f4da45ab.tar.gz
Fix change password missing variable.
-rw-r--r--server.js1
1 files changed, 1 insertions, 0 deletions
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);