diff --git a/sites/partners/.env.template b/sites/partners/.env.template index 414040d1fb..2d9c370afd 100644 --- a/sites/partners/.env.template +++ b/sites/partners/.env.template @@ -9,4 +9,4 @@ CLOUDINARY_CLOUD_NAME=exygy CLOUDINARY_KEY='abcxyz' CLOUDINARY_SIGNED_PRESET='test123' MAPBOX_TOKEN= - +SHOW_SMS_MFA=TRUE diff --git a/sites/partners/next.config.js b/sites/partners/next.config.js index 76668acd58..9cd5fe2a93 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", 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")} +
+ )}