Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: add comments to explain sms_autoconfirm & mailer_autoconfirm

Kang Ming9777ddea2e1d
diff --git a/studio/pages/project/[ref]/auth/settings.tsx b/studio/pages/project/[ref]/auth/settings.tsx
index 86e904ba4e8..292e6583fa5 100644
--- a/studio/pages/project/[ref]/auth/settings.tsx
+++ b/studio/pages/project/[ref]/auth/settings.tsx
@@ -198,6 +198,8 @@ const Settings = () => {
className="mb-4"
label={authConfig.properties.MAILER_AUTOCONFIRM.title}
onChange={(value) => {
+ // If MAILER_AUTOCONFIRM is set to true, it means we are disabling email confirmations.
+ // "Enable email confirmations" should be toggled off.
handleToggle('MAILER_AUTOCONFIRM', !value)
}}
checked={!model.MAILER_AUTOCONFIRM}
@@ -336,8 +338,11 @@ const Settings = () => {
layout="horizontal"
label={authConfig.properties.SMS_AUTOCONFIRM.title}
onChange={(value) => {
+ // If SMS_AUTOCONFIRM is set to true, it means we are disabling phone confirmations.
+ // "Enable phone confirmations" should be toggled off.
handleToggle('SMS_AUTOCONFIRM', !value)
}}
+ //
checked={!model.SMS_AUTOCONFIRM}
descriptionText={authConfig.properties.SMS_AUTOCONFIRM.help}
/>