diff --git a/TaxBaik.Web/Program.cs b/TaxBaik.Web/Program.cs index d73cece..7b90ef0 100644 --- a/TaxBaik.Web/Program.cs +++ b/TaxBaik.Web/Program.cs @@ -235,9 +235,10 @@ try using (var scope = app.Services.CreateScope()) { var telegramService = scope.ServiceProvider.GetRequiredService(); + // 배포 완료 알림 await telegramService.SendInfoAsync( - "서버 시작", - $"환경: {app.Environment.EnvironmentName}"); + "✅ 배포 완료", + $"환경: {app.Environment.EnvironmentName}\n상태: 정상 운영 중"); } } app.Run(); @@ -251,7 +252,7 @@ catch (Exception ex) { var telegramService = scope.ServiceProvider.GetRequiredService(); await telegramService.SendErrorAsync( - "서버 오류", + "❌ 서버 오류", $"환경: {app.Environment.EnvironmentName}\n오류: {ex.Message}"); } } diff --git a/TaxBaik.Web/Services/AuthService.cs b/TaxBaik.Web/Services/AuthService.cs index 90423bf..7728083 100644 --- a/TaxBaik.Web/Services/AuthService.cs +++ b/TaxBaik.Web/Services/AuthService.cs @@ -52,16 +52,12 @@ public class AuthService if (!BCrypt.Net.BCrypt.Verify(password, user.PasswordHash)) { _logger.LogWarning("로그인 시도: 잘못된 비밀번호 '{Username}'", username); - await _telegramService.SendErrorAsync( - "로그인 실패", - $"사용자: {username}\n실패 사유: 잘못된 비밀번호"); + // 실패한 로그인은 알림하지 않음 (로그만 남김) return null; } _logger.LogInformation("로그인 성공: {Username}", username); - await _telegramService.SendInfoAsync( - "관리자 로그인", - $"사용자: {username}"); + // 로그인 알림은 제거 (로그만 남김) await _adminUserRepository.UpdateLastLoginAtAsync(user.Id); return GenerateTokenPair(user); }