Made verification email messages more friendly.

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2018-10-06 20:00:43 -07:00
parent d6cd758c9b
commit cb8437a55b
3 changed files with 15 additions and 14 deletions

View File

@ -437,8 +437,8 @@
<div class="title">Create an account</div> <div class="title">Create an account</div>
<div> <div>
<p>To have your account activated, tell me who you know in the 'who do you know?' field. You will receive <p>To have your account activated, tell me who you know in the 'who do you know?' field. You will receive
an email with an authentication token; click the link in the email, and you're account will be verified. Once an email with a verification link. Check your email and click the link to verify your email address.</p>
verified, I can grant you access to the system. <p>Once verified, I can grant you access to the system.
</p> </p>
<p>Thanks,<br> <p>Thanks,<br>
James</p> James</p>

View File

@ -191,7 +191,7 @@ app.use(basePath, function(req, res, next) {
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {
let attempts = 10; let attempts = 10;
function send(envelope) { function send(envelope) {
/* Rate limit to ten per second */ /* Rate limit to ten per second */
transporter.sendMail(envelope, function (error, info) { transporter.sendMail(envelope, function (error, info) {
@ -199,7 +199,7 @@ app.use(basePath, function(req, res, next) {
console.log('Message sent: ' + info.response); console.log('Message sent: ' + info.response);
return resolve(); return resolve();
} }
if (attempts == 0) { if (attempts == 0) {
console.log("Error sending email: ", error) console.log("Error sending email: ", error)
return reject(error); return reject(error);

View File

@ -40,25 +40,26 @@ router.get("/", function(req, res/*, next*/) {
const templates = { const templates = {
"html": [ "html": [
"<p>Dear {{username}},</p>", "<p>Hello {{username}},</p>",
"", "",
"<p>Welcome to <b>ketrenos.com</b>. Before you can access the system, you must authenticate", "<p>Welcome to <b>ketrenos.com</b>. You are almost done creating your account. ",
"your email address ({{mail}}).</p>", "Before you can access the system, you must verify your email address.</p>",
"", "",
"<p>To do so, simply access this link, which contains your authentication ", "<p>To do so, simply access this link:</p>",
"token: <a href=\"{{url}}{{secret}}\">{{secret}}</a></p>", "<p><a href=\"{{url}}{{secret}}\">VERIFY {{mail}} ADDRESS</a></p>",
"", "",
"<p>Sincerely,</p>", "<p>Sincerely,</p>",
"<p>James</p>" "<p>James</p>"
].join("\n"), ].join("\n"),
"text": [ "text": [
"Dear {{username}},", "Hello {{username}},",
"", "",
"Welcome to ketrenos.com. Before you can access the system, you must authenticate", "Welcome to ketrenos.com. You are almost done creating your account. ",
"your email address ({{mail}}).", "Before you can access the system, you must verify your email address.",
"", "",
"To do so, simply access this link, which contains your authentication ", "To do so, simply access this link:",
"token: {{url}}{{secret}}", "",
"{{url}}{{secret}}",
"", "",
"Sincerely,", "Sincerely,",
"James" "James"