From e863096358dd64ecf2de6efeec3db132cdc8d6b9 Mon Sep 17 00:00:00 2001
From: =Corey Hulen <corey@hulen.com>
Date: Mon, 21 Sep 2015 15:34:09 -0700
Subject: Fixing broken signup pages

---
 web/react/components/signup_team.jsx | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

(limited to 'web/react/components/signup_team.jsx')

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'};
         }
     }
-- 
cgit v1.2.3-1-g7c22

