From 087e652d474606584ed053678e3de1ed081937fb Mon Sep 17 00:00:00 2001 From: mk1020 Date: Sun, 13 Jun 2021 16:25:58 +0300 Subject: [PATCH] debugging --- app/assist/mail.ts | 2 -- app/components/auth/signUp.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/app/assist/mail.ts b/app/assist/mail.ts index afaae60..0836f18 100644 --- a/app/assist/mail.ts +++ b/app/assist/mail.ts @@ -3,7 +3,6 @@ import {env} from '@/envConfig'; export const SMTPOpt: SMTPTransport.Options = { service: 'Gmail', - port: 2525, auth: { type: 'OAuth2', user: env.mailUserName, @@ -13,4 +12,3 @@ export const SMTPOpt: SMTPTransport.Options = { accessToken: env.mailAccessToken } }; -console.log('this is LOGI:', SMTPOpt); diff --git a/app/components/auth/signUp.ts b/app/components/auth/signUp.ts index b007457..97b7492 100644 --- a/app/components/auth/signUp.ts +++ b/app/components/auth/signUp.ts @@ -22,9 +22,7 @@ export const signUp = async (server: FastifyInstance) => { const {rowCount} = await server.pg.query('insert into root.users (email, password_hash, code) values ($1, $2, $3)', [email, hash, linkCode]); if (rowCount) { - console.log('createTransport1'); const transporter = createTransport(SMTPOpt); - console.log('createTransport2'); const link = 'http://localhost:3000/confirm-email/' + linkCode; const mailOptions = { to: email,