diff --git a/sites/partners/.env.template b/sites/partners/.env.template index 6fb1a74776..12f3c58f18 100644 --- a/sites/partners/.env.template +++ b/sites/partners/.env.template @@ -10,3 +10,4 @@ CLOUDINARY_KEY='abcxyz' CLOUDINARY_SIGNED_PRESET='test123' MAPBOX_TOKEN= FEATURE_LISTINGS_APPROVAL=FALSE +SHOW_SMS_MFA=TRUE diff --git a/sites/partners/next.config.js b/sites/partners/next.config.js index c81a85d05c..bdf55ba6e5 100644 --- a/sites/partners/next.config.js +++ b/sites/partners/next.config.js @@ -43,6 +43,7 @@ module.exports = withBundleAnalyzer( listingServiceUrl: BACKEND_API_BASE + LISTINGS_QUERY, idleTimeout: process.env.IDLE_TIMEOUT, showDuplicates: process.env.SHOW_DUPLICATES === "TRUE", + showSmsMfa: (process.env.SHOW_SMS_MFA || "TRUE") === "TRUE", // SMS on by default cloudinaryCloudName: process.env.CLOUDINARY_CLOUD_NAME, cloudinaryKey: process.env.CLOUDINARY_KEY, cloudinarySignedPreset: process.env.CLOUDINARY_SIGNED_PRESET, diff --git a/sites/partners/src/components/users/FormSignInMFAType.tsx b/sites/partners/src/components/users/FormSignInMFAType.tsx index 6af29d0455..37020e700d 100644 --- a/sites/partners/src/components/users/FormSignInMFAType.tsx +++ b/sites/partners/src/components/users/FormSignInMFAType.tsx @@ -46,9 +46,11 @@ const FormSignInMFAType = ({
- {t("nav.signInMFA.verificationChoiceSecondaryTitle")} -
+ {process.env.showSmsMfa && ( ++ {t("nav.signInMFA.verificationChoiceSecondaryTitle")} +
+ )}