summaryrefslogtreecommitdiffstats
path: root/web/react/utils
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-03-07 14:59:15 -0800
committer=Corey Hulen <corey@hulen.com>2016-03-07 14:59:15 -0800
commit777012eee42186316bc68b0ea1c8232601962bc4 (patch)
tree9eae93ee873762038667a3be93001bea4612e195 /web/react/utils
parent0387ac799792fdd0684b863bb029813bbb3eccf7 (diff)
downloadchat-777012eee42186316bc68b0ea1c8232601962bc4.tar.gz
chat-777012eee42186316bc68b0ea1c8232601962bc4.tar.bz2
chat-777012eee42186316bc68b0ea1c8232601962bc4.zip
PLT-1830 Adding ability to create team with ldap
Diffstat (limited to 'web/react/utils')
-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,