summaryrefslogtreecommitdiffstats
path: root/web/react/components/login.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-07-23 09:21:14 -0800
committerCorey Hulen <corey@hulen.com>2015-07-23 09:21:14 -0800
commita9d48ff994cd2d03f8e1b2438e50fc6dd0d9bdc2 (patch)
treef1b1c37242136098941d3d96b32245bf2b6a528c /web/react/components/login.jsx
parentdc79707787b521ea5fc0d9088ccd9069780c8e0c (diff)
parentd42d0e3467c8eec38fdca429ba9ba5ac2af68db8 (diff)
downloadchat-a9d48ff994cd2d03f8e1b2438e50fc6dd0d9bdc2.tar.gz
chat-a9d48ff994cd2d03f8e1b2438e50fc6dd0d9bdc2.tar.bz2
chat-a9d48ff994cd2d03f8e1b2438e50fc6dd0d9bdc2.zip
Merge pull request #237 from mattermost/mm-1570
fixes mm-1570 adds support for using mattermost as an OAuth client
Diffstat (limited to 'web/react/components/login.jsx')
-rw-r--r--web/react/components/login.jsx12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/react/components/login.jsx b/web/react/components/login.jsx
index 71fefff5b..05918650b 100644
--- a/web/react/components/login.jsx
+++ b/web/react/components/login.jsx
@@ -90,6 +90,17 @@ module.exports = React.createClass({
focusEmail = true;
}
+ var auth_services = JSON.parse(this.props.authServices);
+
+ var login_message;
+ if (auth_services.indexOf("gitlab") >= 0) {
+ login_message = (
+ <div className="form-group form-group--small">
+ <span><a href={"/"+teamName+"/login/gitlab"}>{"Log in with GitLab"}</a></span>
+ </div>
+ );
+ }
+
return (
<div className="signup-team__container">
<div>
@@ -112,6 +123,7 @@ module.exports = React.createClass({
<div className="form-group">
<button type="submit" className="btn btn-primary">Sign in</button>
</div>
+ { login_message }
<div className="form-group form-group--small">
<span><a href="/find_team">{"Find other " + strings.TeamPlural}</a></span>
</div>