Added mail for now.
This commit is contained in:
parent
cd0d25ba4f
commit
993dd4e3ed
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user