summaryrefslogtreecommitdiffstats
path: root/api/team.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-20 07:59:56 -0600
committer=Corey Hulen <corey@hulen.com>2016-01-20 07:59:56 -0600
commitf5eb3c1bcb0c7e367f64bd8e5a0d2d5418f8e2ef (patch)
treec40d7064cd2045c36b5c95db8faa9997497e459a /api/team.go
parent1acd38b7b19521d06d274c42c00ce7072cd92196 (diff)
downloadchat-f5eb3c1bcb0c7e367f64bd8e5a0d2d5418f8e2ef.tar.gz
chat-f5eb3c1bcb0c7e367f64bd8e5a0d2d5418f8e2ef.tar.bz2
chat-f5eb3c1bcb0c7e367f64bd8e5a0d2d5418f8e2ef.zip
PLT-7 adding loc for db calls audits and prefs
Diffstat (limited to 'api/team.go')
-rw-r--r--api/team.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/api/team.go b/api/team.go
index e2dd8807e..e94e60326 100644
--- a/api/team.go
+++ b/api/team.go
@@ -6,16 +6,17 @@ package api
import (
"bytes"
"fmt"
- l4g "github.com/alecthomas/log4go"
- "github.com/gorilla/mux"
- "github.com/mattermost/platform/model"
- "github.com/mattermost/platform/store"
- "github.com/mattermost/platform/utils"
"net/http"
"net/url"
"strconv"
"strings"
"time"
+
+ l4g "github.com/alecthomas/log4go"
+ "github.com/gorilla/mux"
+ "github.com/mattermost/platform/model"
+ "github.com/mattermost/platform/store"
+ "github.com/mattermost/platform/utils"
)
func InitTeam(r *mux.Router) {
@@ -222,7 +223,7 @@ func createTeamFromSignup(c *Context, w http.ResponseWriter, r *http.Request) {
teamSignup.User.TeamId = rteam.Id
teamSignup.User.EmailVerified = true
- ruser, err := CreateUser(rteam, &teamSignup.User)
+ ruser, err := CreateUser(c.T, rteam, &teamSignup.User)
if err != nil {
c.Err = err
return