Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Decouple registration from email login (#3337)
Luke Vella0ea32c993d29
diff --git a/apps/docs/self-hosting/configuration.mdx b/apps/docs/self-hosting/configuration.mdxindex 43e3823d7..b1303da26 100644--- a/apps/docs/self-hosting/configuration.mdx+++ b/apps/docs/self-hosting/configuration.mdx@@ -81,7 +81,7 @@ An SMTP server is required to send magic-link sign-in emails and notifications.## Auth<ParamField path="EMAIL_LOGIN_ENABLED" default="true">- Set to `false` to disable magic-link email sign-in. When disabled, users can only sign in via a configured SSO provider, and registration is disabled.+ Set to `false` to disable email sign-in. When disabled, users can only sign in via a configured SSO provider. New users can still register through SSO unless `REGISTRATION_ENABLED` is `false` or registration is disabled in the control panel.<Note>Available from v4.4.0 and later.</Note></ParamField>diff --git a/apps/web/src/lib/feature-flags/config.ts b/apps/web/src/lib/feature-flags/config.tsindex fe1302cd0..96e0845e9 100644--- a/apps/web/src/lib/feature-flags/config.ts+++ b/apps/web/src/lib/feature-flags/config.ts@@ -22,7 +22,10 @@ export const featureFlagConfig: FeatureFlagConfig = {// widget and the secret verifies its tokens. With only one set, captcha// is disabled rather than half working.captcha: !!env.TURNSTILE_SECRET_KEY && !!env.NEXT_PUBLIC_TURNSTILE_SITE_KEY,- registration: isEmailLoginEnabled && isRegistrationEnabled,+ // Independent of emailLogin: an SSO-only instance still provisions accounts+ // on first sign-in, and the create hook in lib/auth.ts enforces this flag+ // on every path that mints an account, social callbacks included.+ registration: isRegistrationEnabled,calendars: isCalendarsEnabled,eventTypes: isEventTypesEnabled,// The new poll admin at /polls/[pollId] is dev-only until it reaches