diff options
Diffstat (limited to 'api4/user.go')
-rw-r--r-- | api4/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/user.go b/api4/user.go index 822cd60c4..d2cc1034a 100644 --- a/api4/user.go +++ b/api4/user.go @@ -59,7 +59,7 @@ func createUser(c *Context, w http.ResponseWriter, r *http.Request) { var ruser *model.User var err *model.AppError if len(hash) > 0 { - ruser, err = app.CreateUserWithHash(user, hash, r.URL.Query().Get("d")) + ruser, err = app.CreateUserWithHash(user, hash, r.URL.Query().Get("d"), c.GetSiteURL()) } else if len(inviteId) > 0 { ruser, err = app.CreateUserWithInviteId(user, inviteId, c.GetSiteURL()) } else { |