diff --git a/src/controllers/09-verification-controller.ts b/src/controllers/09-verification-controller.ts index 692a5bf..db42366 100644 --- a/src/controllers/09-verification-controller.ts +++ b/src/controllers/09-verification-controller.ts @@ -47,7 +47,7 @@ export class verificationController extends Controller { emailTransport = nodemailer.createTransport({ host: process.env.SMTP_HOST!, port: +process.env.SMTP_PORT!, - secure: false, // true for port 465, false for other ports + secure: +process.env.SMTP_PORT! === 465, // true for port 465, false for other ports auth: { user: process.env.SMTP_USER!, pass: process.env.SMTP_PASS!,