📈 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
check if OIDC only auth for signups
Blue Mouse07f8c4e6f8b6
diff --git a/backend/apps/community/src/auth/auth.controller.ts b/backend/apps/community/src/auth/auth.controller.tsindex fc59393e3..d12e3aac5 100644--- a/backend/apps/community/src/auth/auth.controller.ts+++ b/backend/apps/community/src/auth/auth.controller.ts@@ -85,6 +85,11 @@ export class AuthController {@Headers() headers: Record<string, string>,@Ip() requestIp: string,) {+ // If OIDC-only mode is enabled, disable traditional login+ if (OIDC_ONLY_AUTH) {+ throw new ConflictException(i18n.t('auth.oidcOnlyMode'))+ }+const ip = getIPFromHeaders(headers) || requestIp || ''await checkRateLimit(ip, 'register', 5)