// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import LoginEmail from './login_email.jsx'; import LoginLdap from './login_ldap.jsx'; import * as Utils from '../utils/utils.jsx'; import Constants from '../utils/constants.jsx'; export default class Login extends React.Component { constructor(props) { super(props); this.state = {}; } render() { const teamDisplayName = this.props.teamDisplayName; const teamName = this.props.teamName; let loginMessage = []; if (global.window.mm_config.EnableSignUpWithGitLab === 'true') { loginMessage.push( {'with GitLab'} ); } if (global.window.mm_config.EnableSignUpWithGoogle === 'true') { loginMessage.push( {'with Google Apps'} ); } const extraParam = Utils.getUrlParameter('extra'); let extraBox = ''; if (extraParam) { let msg; if (extraParam === Constants.SIGNIN_CHANGE) { msg = ' Sign-in method changed successfully'; } else if (extraParam === Constants.SIGNIN_VERIFIED) { msg = ' Email Verified'; } if (msg != null) { extraBox = (