summaryrefslogtreecommitdiffstats
path: root/web/react/components/signup_team.jsx
diff options
context:
space:
mode:
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
commite863096358dd64ecf2de6efeec3db132cdc8d6b9 (patch)
treee4b98ae37f280415fb62cff83f2da76d39e8752b /web/react/components/signup_team.jsx
parent9baef5a6a033fea2ff5499ee9969c6cd65efef0c (diff)
downloadchat-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.jsx16
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'};
}
}