Refatoração do login page
This commit is contained in:
18
src/auth/users/email.service.ts
Normal file
18
src/auth/users/email.service.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class EmailService {
|
||||
async sendPasswordReset(email: string, newPassword: string) {
|
||||
const sql = `
|
||||
INSERT INTO CORRESPONDENCIAS (
|
||||
CORRESPONDENCIA_ID, DTINCLUSAO, TITULO, MENSAGEM, EMAIL, DESTINATARIO
|
||||
) VALUES (
|
||||
SEQ_CORRESPONDENCIAS.NEXTVAL, SYSDATE, 'Alteração de senha - CoteLivia',
|
||||
'Sua nova senha para acesso ao portal COTELIVIA é ${newPassword}',
|
||||
:email, :email
|
||||
)
|
||||
`;
|
||||
|
||||
console.log(`[Email enviado para ${email}] Senha: ${newPassword}`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user