diff --git a/src/common-components/EnterpriseSSO.jsx b/src/common-components/EnterpriseSSO.jsx index 72ae2d43..953edd8a 100644 --- a/src/common-components/EnterpriseSSO.jsx +++ b/src/common-components/EnterpriseSSO.jsx @@ -18,6 +18,7 @@ import messages from './messages'; const EnterpriseSSO = (props) => { const { intl } = props; const tpaProvider = props.provider; + const disablePublicAccountCreation = getConfig().ALLOW_PUBLIC_ACCOUNT_CREATION === false; const handleSubmit = (e, url) => { e.preventDefault(); @@ -64,12 +65,15 @@ const EnterpriseSSO = (props) => {
diff --git a/src/common-components/Logistration.jsx b/src/common-components/Logistration.jsx index 6032bd0b..aef2b8f4 100644 --- a/src/common-components/Logistration.jsx +++ b/src/common-components/Logistration.jsx @@ -33,6 +33,7 @@ const Logistration = (props) => { } = tpaProviders; const [institutionLogin, setInstitutionLogin] = useState(false); const [key, setKey] = useState(''); + const disablePublicAccountCreation = getConfig().ALLOW_PUBLIC_ACCOUNT_CREATION === false; useEffect(() => { const authService = getAuthService(); @@ -79,28 +80,54 @@ const Logistration = (props) => { return (