From 993dd4e3edab12cf9f3ce10fead8a7bf219fd86a Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 24 Aug 2022 17:31:45 +0200 Subject: [PATCH] Added mail for now. --- src/services/auth.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/services/auth.ts b/src/services/auth.ts index 83fd077..db06bfb 100644 --- a/src/services/auth.ts +++ b/src/services/auth.ts @@ -19,10 +19,13 @@ import { randomBytes } from 'crypto'; const jwtSecret = 'CUM'; const mailAccount = createTransport({ - host: 'smtp.web.de', + host: 'mail.mattv.de', port: 587, secure: false, - auth: require('M:/projects/file_server/dist/auth.json') + auth: { + user: 'no-reply@mattv.de', + pass: 'noreplyLONGPASS123' + } }); interface jwtPayload { @@ -108,7 +111,7 @@ export class AuthService { async sendTfaMail(user: User) { await mailAccount.sendMail({ - from: 'matthiasveigel@web.de', + from: 'fileserver@mattv.de', to: user.name, subject: 'Fileserver - EMail 2fa code', text: `Your code is: ${notp.totp.gen(