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(