diff --git a/webapp/components/signup/signup_controller.jsx b/webapp/components/signup/signup_controller.jsx index 67d3b0c4fc..a4ec26a5f6 100644 --- a/webapp/components/signup/signup_controller.jsx +++ b/webapp/components/signup/signup_controller.jsx @@ -162,7 +162,7 @@ export default class SignupController extends React.Component { ); } - if (global.window.mm_config.EnableSignUpWithGoogle === 'true') { + if (global.window.mm_license.IsLicensed === 'true' && global.window.mm_config.EnableSignUpWithGoogle === 'true') { signupControls.push( ); + } else if (signupControls.length === 1) { + if (global.window.mm_config.EnableSignUpWithEmail === 'true') { + return browserHistory.push('/signup_email' + window.location.search); + } else if (global.window.mm_license.IsLicensed === 'true' && global.window.mm_config.EnableLdap === 'true') { + return browserHistory.push('/signup_ldap'); + } } return signupControls;