📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Constants containing authorization information have been rewritten
Yevhenii Kulisidi0163c2d7a957
diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.tsindex 0446ab6d3..fa6ed6bbc 100644--- a/src/auth/auth.controller.ts+++ b/src/auth/auth.controller.ts@@ -131,17 +131,17 @@ export class AuthController {user.sharedProjects = sharedProjects- const ua = UAParser(userAgent)- const br = ua.browser.name || 'unknown'- const dv = ua.device.type || 'desktop'- const os = ua.os.name || 'unknown'- const tz = Intl.DateTimeFormat().resolvedOptions().timeZone- const cc =- ct.getCountryForTimezone(tz)?.id ||- (headers['cf-ipcountry'] === 'XX' ? 'NULL' : headers['cf-ipcountry'])- const country = ct.getCountry(cc)?.name || 'unknown'-if (user.isTelegramChatIdConfirmed) {+ const ua = UAParser(userAgent)+ const br = ua.browser.name || 'unknown'+ const dv = ua.device.type || 'desktop'+ const os = ua.os.name || 'unknown'+ const tz = Intl.DateTimeFormat().resolvedOptions().timeZone+ const cc =+ ct.getCountryForTimezone(tz)?.id ||+ (headers['cf-ipcountry'] === 'XX' ? 'NULL' : headers['cf-ipcountry'])+ const country = ct.getCountry(cc)?.name || 'unknown'+this.bot.telegram.sendMessage(user.telegramChatId,`🚨 *Someone has logged into your account!*` +