diff --git a/app/assist/mail.ts b/app/assist/mail.ts index 8c1767f..afaae60 100644 --- a/app/assist/mail.ts +++ b/app/assist/mail.ts @@ -3,6 +3,7 @@ import {env} from '@/envConfig'; export const SMTPOpt: SMTPTransport.Options = { service: 'Gmail', + port: 2525, auth: { type: 'OAuth2', user: env.mailUserName, diff --git a/app/components/auth/signUp.ts b/app/components/auth/signUp.ts index 97b7492..b007457 100644 --- a/app/components/auth/signUp.ts +++ b/app/components/auth/signUp.ts @@ -22,7 +22,9 @@ 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,