diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-12-14 13:35:59 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-12-15 13:55:09 +0100 |
commit | 723596443ab3bee92475e8f20ea8451b1736c20c (patch) | |
tree | 9fe3b5335188c333a5741fb8378939cb97aaefb2 /server.js | |
parent | 5a6b29c7407473a066165d0b96edd805902389df (diff) | |
download | server-723596443ab3bee92475e8f20ea8451b1736c20c.tar.gz |
Fix message formatting (missing line).
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |