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,