mirror of
https://github.com/detleph/server.git
synced 2026-09-04 08:36:06 +02:00
Remove leftover TODOs
This commit is contained in:
@@ -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 || {};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user