diff --git a/.env.ci b/.env.ci index 9003024..0b9e369 100644 --- a/.env.ci +++ b/.env.ci @@ -22,7 +22,8 @@ VC_DURATION=5# In minutes VERIFICATION_LINK=http://localhost:3000/verify # Email settings -EMAIL_SERVICE=gmail +EMAIL_HOST=smtp.gmail.com +EMAIL_PORT=587 EMAIL_USER=user@gmail.com EMAIL_PASSWORD=password diff --git a/.env.vault b/.env.vault index a1ee3da..70b9e4f 100644 --- a/.env.vault +++ b/.env.vault @@ -4,20 +4,20 @@ #/--------------------------------------------------/ # ci -DOTENV_VAULT_CI="NI3UL+h69klFLHQOB3W8HPquTOqR/YrcLXWaLXxoIzgU2CEJMqr7wnhi4Ridct+BGFkOh6vw6RpI0jiEnXXr8UVMYSEv3coLTU494UeDvQl619oDM87LFnDtyNuhQtS8G5wO7denKYIduZMCBl8ugM2M133eB425uyomk4jowalSDMgGHHB6D2/u8AnSZdKIG1qC9HgXM/P7H9/B58ldSMKnkKA6fNY+rSe/w1mFamfeejcFRDJmlMe57AJ2il83JJZxdRvn4K6wKAI9RUgWwT4byKmimIjvTkw9STKMz9d2WMmgBaKyEg9rvZ1BWGsN2qtqXxL71yUuHODqDlC5De6k2VGhTY61c/8iFQRx7Vo3SPaW94apB2TnRjNiDBEHL03ZRQRUbXS76tZfD4ot/wwQapcXC9S1YBqmRf9zoMnwmevp6FbUjdOYcVc9Fq5IHYbKPAPfHb9q9tGWjLeHqN0xRGXcIHvZPH+21kzHT9lwdWYJ/c1+nUR+7macYhROSh67qKZu08Aj0KdTdYN4HrahZ0JMClmJCbxExWv07SoKsuUtJ6d4T85kibXh2hlHAOPAyOt2Qiji/YNN83uTAHlUfYw90dLJOOwpMTJ5+AD582Vz1q0WLK9ifJkVMjvo4fQAJOBHA5pJxtlJirylVrwOKGMEnJ0hAJulzz8INMtE1fwUf19/YEY9eIiMXe9iFE76EOKjNC65tB7bNIAXNEbsxZZQUxk8qdMp1CPHYByuxHYoXLzZOPoQQzNOuknqR4MF3DkMQO3D+TN5var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fG/EUf0dN3n0cx716o3cu+798auevCUTQ0FY9nuE+wvNTGo+OAgSV1dQo24O87STXjaJhZSl4PLArhwcMD+JDfBYu/8/bKZJTJ/CrToqQWy6ILw0pn4Xb+KZsvw4KI3OmLiy8MnsClVGYVKSaKnbxBVMlhmF4gi7k+KGWZFqgExIFAch5CHzNcJVmUa45loBSVgS9Ta6wSqcwEO1OaR3q8wOUiW4EVfP2+ZOf9XwpKDjT7uF+J9LAU7mIqUkn94qBV+dDsP/Gy4rdltZOYyjQG9mpYCET8WTddDPeRKz+q88EKuFGON8rTaN1lR8k4Ztxmpb9eCDyyFA7cc=" +DOTENV_VAULT_PRODUCTION_VERSION=15 #/----------------settings/metadata-----------------/ DOTENV_VAULT="vlt_1cce7b29c7892f42e27ac6ab472faa96e16f086bcb3b48308ee1053e7d448bf8" diff --git a/src/services/email.service.ts b/src/services/email.service.ts index 6ee0604..5bb2213 100644 --- a/src/services/email.service.ts +++ b/src/services/email.service.ts @@ -13,10 +13,11 @@ export class EmailService{ async sendConfirmationEmail(email: string, code: string): Promise{ const emailUser = this.configService.get("EMAIL_USER"); const emailPassword = this.configService.get("EMAIL_PASSWORD"); - // const emailService = this.configService.get("EMAIL_SERVICE"); + const emailHost = this.configService.get("EMAIL_HOST"); + const emailPort = this.configService.get("EMAIL_PORT"); const transporter = nodemailer.createTransport({ - host: "smtp.gmail.com", - port: 587, + host: emailHost, + port: emailPort, auth: { user: emailUser, pass: emailPassword,