From 91c4271226baa226c059860b5cf655a268ebd1e2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 7 Jan 2022 11:58:17 +0100 Subject: Fix password reset token. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index be67657..5523541 100644 --- a/server.js +++ b/server.js @@ -376,7 +376,7 @@ app.post('/forgot-password', function (req, res) { if (user) { let token = SQL_FIND_TOKEN.get(user.user_id); if (!token) { - token = SQL_CREATE_TOKEN.run(user.user_id); + token = SQL_CREATE_TOKEN.get(user.user_id); mail_password_reset_token(user, token); } return res.redirect('/reset-password/' + mail); -- cgit v1.2.3