Merge pull request #2532 from mattermost/ldap-switch-fix

Minor fix to let Sign-in Method settings show up when ldap is enabled
Этот коммит содержится в:
Christopher Speller
2016-03-28 07:53:34 -04:00
родитель 7a25f2a78b 105333412e
Коммит 84f9c018e5
2 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

@@ -416,6 +416,7 @@ class SecurityTab extends React.Component {
let numMethods = 0;
numMethods = global.window.mm_config.EnableSignUpWithGitLab === 'true' ? numMethods + 1 : numMethods;
numMethods = global.window.mm_config.EnableSignUpWithGoogle === 'true' ? numMethods + 1 : numMethods;
numMethods = global.window.mm_config.EnableLdap === 'true' ? numMethods + 1 : numMethods;
if (global.window.mm_config.EnableSignUpWithEmail && numMethods > 0) {
signInSection = this.createSignInSection();