File tree Expand file tree Collapse file tree 5 files changed +46
-57
lines changed
Expand file tree Collapse file tree 5 files changed +46
-57
lines changed Original file line number Diff line number Diff line change 1- v18
1+ v22
Original file line number Diff line number Diff line change 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" : {
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" ,
Original file line number Diff line number Diff line change 1- import path from "path" ;
2- import hbs , {
3- NodemailerExpressHandlebarsOptions
4- } from "nodemailer-express-handlebars" ;
51import { JSDOM } from "jsdom" ;
62import createDOMPurify from "dompurify" ;
73const window : any = new JSDOM ( "" ) . window ;
84const DOMPurify = createDOMPurify ( window ) ;
9- import nodemailer from "nodemailer" ;
105import { log } from "../core/log.js" ;
116
12- const transporter = nodemailer . createTransport ( getNodemailerOptionsObject ( ) ) ;
13-
147const { SendMailClient } = require ( "zeptomail" ) ;
158
169const 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-
10788function generateNewUserMail ( email : string , code : string ) {
10889 const confirmationLink = constructConfirmationUrl (
10990 "confirm-email-address" ,
Original file line number Diff line number Diff line change 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" >
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" >
You can’t perform that action at this time.
0 commit comments