chore: change the email service
This commit is contained in:
@@ -9,7 +9,7 @@ export function mailerConfig(): MailerAsyncOptions {
|
|||||||
transport: {
|
transport: {
|
||||||
host: configService.getOrThrow<string>("SMTP_HOST"),
|
host: configService.getOrThrow<string>("SMTP_HOST"),
|
||||||
port: configService.getOrThrow<number>("SMTP_PORT"),
|
port: configService.getOrThrow<number>("SMTP_PORT"),
|
||||||
secure: false,
|
secure: true,
|
||||||
auth: {
|
auth: {
|
||||||
user: configService.getOrThrow<string>("SMTP_USER"),
|
user: configService.getOrThrow<string>("SMTP_USER"),
|
||||||
pass: configService.getOrThrow<string>("SMTP_PASS"),
|
pass: configService.getOrThrow<string>("SMTP_PASS"),
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ export class AuthService {
|
|||||||
|
|
||||||
const tokens = await this.tokensService.generateTokens(user);
|
const tokens = await this.tokensService.generateTokens(user);
|
||||||
|
|
||||||
await this.notificationQueue.addLoginNotification(user.id, { userPhone: user.phone });
|
await this.notificationQueue.addLoginNotification(user.id, { userPhone: user.phone, userEmail: user.email });
|
||||||
return {
|
return {
|
||||||
message: AuthMessage.LOGIN_SUCCESS,
|
message: AuthMessage.LOGIN_SUCCESS,
|
||||||
...tokens,
|
...tokens,
|
||||||
|
|||||||
Reference in New Issue
Block a user