summaryrefslogtreecommitdiffstats
path: root/web/react/utils/client.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-03-08 10:18:05 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2016-03-08 10:18:05 -0500
commit22470c2069eb21539540d19e80fd85394782c9a7 (patch)
tree3d8b6856fa93ed821ccae976666b41b79cd711eb /web/react/utils/client.jsx
parent8fc42cbeb6fc7c824b175e522b0039ee7167edf1 (diff)
parent777012eee42186316bc68b0ea1c8232601962bc4 (diff)
downloadchat-22470c2069eb21539540d19e80fd85394782c9a7.tar.gz
chat-22470c2069eb21539540d19e80fd85394782c9a7.tar.bz2
chat-22470c2069eb21539540d19e80fd85394782c9a7.zip
Merge pull request #2370 from mattermost/PLT-1830
PLT-1830 Adding ability to create team with ldap
Diffstat (limited to 'web/react/utils/client.jsx')
-rw-r--r--web/react/utils/client.jsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index 1a002bc8c..76d42137a 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -87,6 +87,21 @@ export function createTeamFromSignup(teamSignup, success, error) {
});
}
+export function createTeamWithLdap(teamSignup, success, error) {
+ $.ajax({
+ url: '/api/v1/teams/create_with_ldap',
+ dataType: 'json',
+ contentType: 'application/json',
+ type: 'POST',
+ data: JSON.stringify(teamSignup),
+ success,
+ error: function onError(xhr, status, err) {
+ var e = handleError('createTeamFromSignup', xhr, status, err);
+ error(e);
+ }
+ });
+}
+
export function createTeamWithSSO(team, service, success, error) {
$.ajax({
url: '/api/v1/teams/create_with_sso/' + service,