Skip to content

Commit a64db96

Browse files
authored
Merge pull request #70 from mathematicalbasedefenders/development
Prepare for version `0.6.8`
2 parents 532ff90 + 38cb4ec commit a64db96

File tree

5 files changed

+46
-57
lines changed

5 files changed

+46
-57
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v22

package-lock.json

Lines changed: 42 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mathematicalbasedefenders.com",
3-
"version": "0.6.7",
3+
"version": "0.6.8",
44
"description": "Website for Mathematical Base Defenders.",
55
"main": "app.js",
66
"scripts": {
@@ -48,7 +48,6 @@
4848
"mongoose-query-parser": "^1.2.1",
4949
"mpath": "^0.8.4",
5050
"node-fetch": "^2.6.9",
51-
"nodemailer": "^6.7.0",
5251
"nodemailer-express-handlebars": "^6.1.0",
5352
"serve-favicon": "^2.5.0",
5453
"typescript": "^4.8.4",

src/server/core/mail.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
1-
import path from "path";
2-
import hbs, {
3-
NodemailerExpressHandlebarsOptions
4-
} from "nodemailer-express-handlebars";
51
import { JSDOM } from "jsdom";
62
import createDOMPurify from "dompurify";
73
const window: any = new JSDOM("").window;
84
const DOMPurify = createDOMPurify(window);
9-
import nodemailer from "nodemailer";
105
import { log } from "../core/log.js";
116

12-
const transporter = nodemailer.createTransport(getNodemailerOptionsObject());
13-
147
const { SendMailClient } = require("zeptomail");
158

169
const EMAIL_URL = process.env.EMAIL_URL;
@@ -92,18 +85,6 @@ async function sendMailToNewlyRegisteredUser(
9285
return true;
9386
}
9487

95-
function getNodemailerOptionsObject() {
96-
let toReturn = {
97-
host: process.env.EMAIL_HOST,
98-
port: 587,
99-
auth: {
100-
user: process.env.EMAIL_USERNAME,
101-
pass: process.env.EMAIL_PASSWORD
102-
}
103-
};
104-
return toReturn;
105-
}
106-
10788
function generateNewUserMail(email: string, code: string) {
10889
const confirmationLink = constructConfirmationUrl(
10990
"confirm-email-address",

src/server/views/partials/footer.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div><a class="bottom-footer__link" href="https://patreon.com/mistertfy64">
1111
Patreon</a>
1212
</div>
13-
<div><a class="bottom-footer__link" href="https://discord.gg/pDTZvrTXm9">
13+
<div><a class="bottom-footer__link" href="https://goto.mistertfy64.com/mbddc">
1414
Discord</a>
1515
</div>
1616
<div><a class="bottom-footer__link" href="https://github.com/mathematicalbasedefenders">
@@ -19,7 +19,7 @@
1919
<div><a class="bottom-footer__link" href="https://facebook.com/mathematicalbasedefenders">
2020
Facebook</a>
2121
</div>
22-
<div><a class="bottom-footer__link" href="https://twitter.com/MathematicalBD">
22+
<div><a class="bottom-footer__link" href="https://x.com/MathematicalBD">
2323
X (Twitter)</a>
2424
</div>
2525
<div><a class="bottom-footer__link" href="https://instagram.com/mathematicalbasedefenders">

0 commit comments

Comments
 (0)