Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
mk1020 committed Jun 13, 2021
1 parent 1f7c942 commit 087e652
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/assist/mail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {env} from '@/envConfig';

export const SMTPOpt: SMTPTransport.Options = {
service: 'Gmail',
port: 2525,
auth: {
type: 'OAuth2',
user: env.mailUserName,
Expand All @@ -13,4 +12,3 @@ export const SMTPOpt: SMTPTransport.Options = {
accessToken: env.mailAccessToken
}
};
console.log('this is LOGI:', SMTPOpt);
2 changes: 0 additions & 2 deletions app/components/auth/signUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 087e652

Please sign in to comment.