Update dependencies, fix package conflicts, add packages (ejs, email-templates)
This commit is contained in:
@@ -37,7 +37,7 @@ class Email {
|
||||
* @param {boolean} pgp (optional) if outgoing emails are encrypted to the user's public key.
|
||||
*/
|
||||
init({host, port = 465, auth, tls, starttls, pgp, sender}) {
|
||||
this._transport = nodemailer.createTransport({
|
||||
const transporter = nodemailer.createTransport({
|
||||
host,
|
||||
port,
|
||||
auth,
|
||||
|
||||
2
src/email/templates/verifyKey/html.ejs
Normal file
2
src/email/templates/verifyKey/html.ejs
Normal file
@@ -0,0 +1,2 @@
|
||||
<p>Hello <%= name %>,</p>
|
||||
<p>please <a href="<%= `${baseUrl}/api/v1/key?op=verify&keyId=${keyId}&nonce=${nonce}` %>">click here to verify</a> your key.</p>
|
||||
1
src/email/templates/verifyKey/subject.ejs
Normal file
1
src/email/templates/verifyKey/subject.ejs
Normal file
@@ -0,0 +1 @@
|
||||
Verify Your Key
|
||||
2
src/email/templates/verifyRemove/html.ejs
Normal file
2
src/email/templates/verifyRemove/html.ejs
Normal file
@@ -0,0 +1,2 @@
|
||||
<p>Hello <%= name %>,</p>
|
||||
<p>please <a href="<%= `${baseUrl}/api/v1/key?op=verifyRemove&keyId=${keyId}&nonce=${nonce}` %>">click here to verify</a> the removal of your key.</p>
|
||||
1
src/email/templates/verifyRemove/subject.ejs
Normal file
1
src/email/templates/verifyRemove/subject.ejs
Normal file
@@ -0,0 +1 @@
|
||||
Verify Key Removal
|
||||
Reference in New Issue
Block a user