feat: add debug logging for SMTP configuration and detailed mail delivery status
Build and Push Multi-Platform Images / build-and-push (push) Failing after 34s

This commit is contained in:
2026-05-06 19:48:29 +02:00
parent 443ab765c9
commit a000e0f5c6
16 changed files with 431 additions and 5 deletions
@@ -0,0 +1,23 @@
import { Body, Controller, Get, HttpCode, Post, Put, Request } from '@nestjs/common';
import { UserSettingsService } from './user-settings.service';
@Controller('api/user-settings')
export class UserSettingsController {
constructor(private readonly userSettingsService: UserSettingsService) {}
@Get()
async getSettings(@Request() req: any) {
return this.userSettingsService.getSettings(req.user.userId);
}
@Put()
async updateSettings(@Request() req: any, @Body() body: any) {
return this.userSettingsService.updateSettings(req.user.userId, body);
}
@Post('test-smtp')
@HttpCode(200)
async testSmtp(@Body() body: { host: string; port: number; secure: boolean; user: string; pass: string }) {
return this.userSettingsService.testSmtp(body);
}
}