diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-21 15:34:09 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-21 15:34:09 -0700 |
commit | e863096358dd64ecf2de6efeec3db132cdc8d6b9 (patch) | |
tree | e4b98ae37f280415fb62cff83f2da76d39e8752b /web/react/components/signup_team.jsx | |
parent | 9baef5a6a033fea2ff5499ee9969c6cd65efef0c (diff) | |
download | chat-e863096358dd64ecf2de6efeec3db132cdc8d6b9.tar.gz chat-e863096358dd64ecf2de6efeec3db132cdc8d6b9.tar.bz2 chat-e863096358dd64ecf2de6efeec3db132cdc8d6b9.zip |
Fixing broken signup pages
Diffstat (limited to 'web/react/components/signup_team.jsx')
-rw-r--r-- | web/react/components/signup_team.jsx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/web/react/components/signup_team.jsx b/web/react/components/signup_team.jsx index 91d79b919..d08608c9b 100644 --- a/web/react/components/signup_team.jsx +++ b/web/react/components/signup_team.jsx @@ -12,11 +12,21 @@ export default class TeamSignUp extends React.Component { this.updatePage = this.updatePage.bind(this); - if (global.window.config.AllowSignUpWithEmail && global.window.config.AllowSignUpWithGitLab) { + var count = 0; + + if (global.window.config.AllowSignUpWithEmail === 'true') { + count = count + 1; + } + + if (global.window.config.AllowSignUpWithGitLab === 'true') { + count = count + 1; + } + + if (count > 1) { this.state = {page: 'choose'}; - } else if (global.window.config.AllowSignUpWithEmail) { + } else if (global.window.config.AllowSignUpWithEmail === 'true') { this.state = {page: 'email'}; - } else if (global.window.config.AllowSignUpWithGitLab) { + } else if (global.window.config.AllowSignUpWithGitLab === 'true') { this.state = {page: 'gitlab'}; } } |