summaryrefslogtreecommitdiffstats
path: root/web/react/components/login.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/login.jsx')
-rw-r--r--web/react/components/login.jsx13
1 files changed, 10 insertions, 3 deletions
diff --git a/web/react/components/login.jsx b/web/react/components/login.jsx
index fe0a47777..5f396ac49 100644
--- a/web/react/components/login.jsx
+++ b/web/react/components/login.jsx
@@ -92,14 +92,21 @@ module.exports = React.createClass({
var auth_services = JSON.parse(this.props.authServices);
- var login_message;
- if (auth_services.indexOf("gitlab") >= 0) {
- login_message = (
+ var login_message = [];
+ if (auth_services.indexOf(Constants.GITLAB_SERVICE) >= 0) {
+ login_message.push(
<div className="form-group form-group--small">
<span><a href={"/"+teamName+"/login/gitlab"}>{"Log in with GitLab"}</a></span>
</div>
);
}
+ if (auth_services.indexOf(Constants.GOOGLE_SERVICE) >= 0) {
+ login_message.push(
+ <div className="form-group form-group--small">
+ <span><a href={"/"+teamName+"/login/google"}>{"Log in with Google"}</a></span>
+ </div>
+ );
+ }
return (
<div className="signup-team__container">