Made verification email messages more friendly.
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
d6cd758c9b
commit
cb8437a55b
@ -437,8 +437,8 @@
|
||||
<div class="title">Create an account</div>
|
||||
<div>
|
||||
<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
|
||||
verified, I can grant you access to the system.
|
||||
an email with a verification link. Check your email and click the link to verify your email address.</p>
|
||||
<p>Once verified, I can grant you access to the system.
|
||||
</p>
|
||||
<p>Thanks,<br>
|
||||
James</p>
|
||||
|
@ -191,7 +191,7 @@ app.use(basePath, function(req, res, next) {
|
||||
|
||||
return new Promise(function (resolve, reject) {
|
||||
let attempts = 10;
|
||||
|
||||
|
||||
function send(envelope) {
|
||||
/* Rate limit to ten per second */
|
||||
transporter.sendMail(envelope, function (error, info) {
|
||||
@ -199,7 +199,7 @@ app.use(basePath, function(req, res, next) {
|
||||
console.log('Message sent: ' + info.response);
|
||||
return resolve();
|
||||
}
|
||||
|
||||
|
||||
if (attempts == 0) {
|
||||
console.log("Error sending email: ", error)
|
||||
return reject(error);
|
||||
|
@ -40,25 +40,26 @@ router.get("/", function(req, res/*, next*/) {
|
||||
|
||||
const templates = {
|
||||
"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",
|
||||
"your email address ({{mail}}).</p>",
|
||||
"<p>Welcome to <b>ketrenos.com</b>. You are almost done creating your account. ",
|
||||
"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 ",
|
||||
"token: <a href=\"{{url}}{{secret}}\">{{secret}}</a></p>",
|
||||
"<p>To do so, simply access this link:</p>",
|
||||
"<p><a href=\"{{url}}{{secret}}\">VERIFY {{mail}} ADDRESS</a></p>",
|
||||
"",
|
||||
"<p>Sincerely,</p>",
|
||||
"<p>James</p>"
|
||||
].join("\n"),
|
||||
"text": [
|
||||
"Dear {{username}},",
|
||||
"Hello {{username}},",
|
||||
"",
|
||||
"Welcome to ketrenos.com. Before you can access the system, you must authenticate",
|
||||
"your email address ({{mail}}).",
|
||||
"Welcome to ketrenos.com. You are almost done creating your account. ",
|
||||
"Before you can access the system, you must verify your email address.",
|
||||
"",
|
||||
"To do so, simply access this link, which contains your authentication ",
|
||||
"token: {{url}}{{secret}}",
|
||||
"To do so, simply access this link:",
|
||||
"",
|
||||
"{{url}}{{secret}}",
|
||||
"",
|
||||
"Sincerely,",
|
||||
"James"
|
||||
|
Loading…
x
Reference in New Issue
Block a user