summaryrefslogtreecommitdiffstats
path: root/web/react/components/signup_team.jsx
diff options
context:
space:
mode:
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'};
}
}