diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-29 10:25:11 +0000 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-06-29 10:25:11 +0000 |
commit | 0685fe9df4b3f3d62686dc1f2841cb17f4da45ab (patch) | |
tree | ca2ad81c2d358c2d52f883e1e90fadcabc28e112 | |
parent | 401a13ff9e7792f0e060ccfb15afdbd3bc5fc557 (diff) | |
download | server-0685fe9df4b3f3d62686dc1f2841cb17f4da45ab.tar.gz |
Fix change password missing variable.
-rw-r--r-- | server.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |