summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-12-14 13:35:59 +0100
committerTor Andersson <tor@ccxvii.net>2021-12-15 13:55:09 +0100
commit723596443ab3bee92475e8f20ea8451b1736c20c (patch)
tree9fe3b5335188c333a5741fb8378939cb97aaefb2 /server.js
parent5a6b29c7407473a066165d0b96edd805902389df (diff)
downloadserver-723596443ab3bee92475e8f20ea8451b1736c20c.tar.gz
Fix message formatting (missing line).
Diffstat (limited to 'server.js')
-rw-r--r--server.js4
1 files changed, 2 insertions, 2 deletions
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)