From 723596443ab3bee92475e8f20ea8451b1736c20c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 14 Dec 2021 13:35:59 +0100 Subject: Fix message formatting (missing line). --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server.js') diff --git a/server.js b/server.js index 171ed2d..2667ad1 100644 --- a/server.js +++ b/server.js @@ -322,9 +322,9 @@ app.post('/login', function (req, res) { let name_or_mail = req.body.username; let password = req.body.password; let redirect = req.body.redirect; + LOG(req, "POST /login", name_or_mail); if (!is_email(name_or_mail)) name_or_mail = clean_user_name(name_or_mail); - LOG(req, "POST /login", name_or_mail); let user = SQL_SELECT_LOGIN_BY_NAME.get(name_or_mail); if (!user) user = SQL_SELECT_LOGIN_BY_MAIL.get(name_or_mail); @@ -1416,7 +1416,7 @@ function mail_new_message(user, msg_id, msg_from, msg_subject, msg_body) { let subject = "You have a new message from " + msg_from + "."; let body = "Subject: " + msg_subject + "\n\n" + msg_body + "\n\n--\n" + - "You can reply to this message at:\n" + "You can reply to this message at:\n" + "https://rally-the-troops.com/message/read/" + msg_id + "\n\n"; console.log("SENT MAIL:", mail_addr(user), subject); if (mailer) -- cgit v1.2.3