PLT-4008 go directly to the account creation page when 1 signup method enabled (#3894)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
968df8c186
Коммит
3731cc5b67
@@ -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(
|
signupControls.push(
|
||||||
<a
|
<a
|
||||||
className='btn btn-custom-login btn--full google'
|
className='btn btn-custom-login btn--full google'
|
||||||
@@ -180,7 +180,7 @@ export default class SignupController extends React.Component {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (global.window.mm_config.EnableSignUpWithOffice365 === 'true') {
|
if (global.window.mm_license.IsLicensed === 'true' && global.window.mm_config.EnableSignUpWithOffice365 === 'true') {
|
||||||
signupControls.push(
|
signupControls.push(
|
||||||
<a
|
<a
|
||||||
className='btn btn-custom-login btn--full office365'
|
className='btn btn-custom-login btn--full office365'
|
||||||
@@ -251,6 +251,12 @@ export default class SignupController extends React.Component {
|
|||||||
margin={true}
|
margin={true}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
} 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;
|
return signupControls;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user