Remove leftover TODOs

This commit is contained in:
Stefan-5422
2022-05-30 19:42:45 +02:00
parent eb20ff4965
commit f80f5b4938
2 changed files with 0 additions and 3 deletions
-1
View File
@@ -108,7 +108,6 @@ export const requestToken = async (req: Request, res: Response) => {
res.status(200).json({ type: "sucess", message: "Email sent!" });
};
//TODO: This should be a get request with the code as a veriable part in the url
export const verifyEmail = async (req: Request, res: Response) => {
const { code } = req.params || {};
-2
View File
@@ -5,7 +5,6 @@ import nodemailer from "nodemailer";
import SMTPTransport from "nodemailer/lib/smtp-transport";
import mjml from "./mjml";
import { randomUUID } from "crypto";
import logger from "../Middleware/error/logger";
export let mailAccount = { user: process.env.MAILUSER + "@mail." + process.env.DOMAIN, pass: process.env.MAILPASSWORD };
@@ -67,7 +66,6 @@ const sendMail = async (from: string, to: string, subject: string, text?: string
export const verificationMail = async (to: string, eventName: string, verificationLink: string) => {
const raw = mjml.getTemplate("emailVerification");
//TODO: Set the verification link to the correct endpoint
verificationLink = "https://" + (process.env.DOMAIN ?? "localhost:3000") + "/api/users/verify/" + verificationLink;
const message = Handlebars.compile(raw);