The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: The mail confirm setting should be negated (#37615)
Ivan Vasiloveb95e36e5042
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsxindex e915e23641d..c1fcb131674 100644--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx@@ -36,7 +36,7 @@ export const ProviderForm = ({ config, provider, isActive }: ProviderFormProps)const [open, setOpen] = useState(false)const { mutate: updateAuthConfig, isLoading: isUpdatingConfig } = useAuthConfigUpdateMutation()- const doubleNegativeKeys = ['MAILER_AUTOCONFIRM', 'SMS_AUTOCONFIRM']+ const doubleNegativeKeys = ['SMS_AUTOCONFIRM']const canUpdateConfig: boolean = useCheckPermissions(PermissionAction.UPDATE,'custom_config_gotrue'diff --git a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsxindex 54edfebbf88..8961d29c60a 100644--- a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx+++ b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx@@ -64,7 +64,8 @@ const BasicAuthSettingsForm = () => {DISABLE_SIGNUP: !authConfig.DISABLE_SIGNUP,EXTERNAL_ANONYMOUS_USERS_ENABLED: authConfig.EXTERNAL_ANONYMOUS_USERS_ENABLED,SECURITY_MANUAL_LINKING_ENABLED: authConfig.SECURITY_MANUAL_LINKING_ENABLED,- MAILER_AUTOCONFIRM: authConfig.MAILER_AUTOCONFIRM,+ // The backend uses false to represent that email confirmation is required+ MAILER_AUTOCONFIRM: !authConfig.MAILER_AUTOCONFIRM,SITE_URL: authConfig.SITE_URL,})}@@ -78,6 +79,9 @@ const BasicAuthSettingsForm = () => {payload.PASSWORD_REQUIRED_CHARACTERS = ''}+ // The backend uses false to represent that email confirmation is required+ payload.MAILER_AUTOCONFIRM = !values.MAILER_AUTOCONFIRM+updateAuthConfig({ projectRef: projectRef!, config: payload },{