Added mail for now.
This commit is contained in:
		@@ -19,10 +19,13 @@ import { randomBytes } from 'crypto';
 | 
				
			|||||||
const jwtSecret = 'CUM';
 | 
					const jwtSecret = 'CUM';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const mailAccount = createTransport({
 | 
					const mailAccount = createTransport({
 | 
				
			||||||
	host: 'smtp.web.de',
 | 
						host: 'mail.mattv.de',
 | 
				
			||||||
	port: 587,
 | 
						port: 587,
 | 
				
			||||||
	secure: false,
 | 
						secure: false,
 | 
				
			||||||
	auth: require('M:/projects/file_server/dist/auth.json')
 | 
						auth: {
 | 
				
			||||||
 | 
							user: 'no-reply@mattv.de',
 | 
				
			||||||
 | 
							pass: 'noreplyLONGPASS123'
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
interface jwtPayload {
 | 
					interface jwtPayload {
 | 
				
			||||||
@@ -108,7 +111,7 @@ export class AuthService {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	async sendTfaMail(user: User) {
 | 
						async sendTfaMail(user: User) {
 | 
				
			||||||
		await mailAccount.sendMail({
 | 
							await mailAccount.sendMail({
 | 
				
			||||||
			from: 'matthiasveigel@web.de',
 | 
								from: 'fileserver@mattv.de',
 | 
				
			||||||
			to: user.name,
 | 
								to: user.name,
 | 
				
			||||||
			subject: 'Fileserver - EMail 2fa code',
 | 
								subject: 'Fileserver - EMail 2fa code',
 | 
				
			||||||
			text: `Your code is: ${notp.totp.gen(
 | 
								text: `Your code is: ${notp.totp.gen(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user