diff options
author | JoramWilander <jwawilander@gmail.com> | 2016-03-24 19:32:25 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2016-03-24 19:32:25 -0400 |
commit | de2f7f4e529e697c07bb786bd099683d746044d2 (patch) | |
tree | fc5959dcf39c949cce06b65210b0c41ad098aebd /api/user.go | |
parent | 8f5b90fe7858de03ac055b38ab7aaec5f54fa107 (diff) | |
download | chat-de2f7f4e529e697c07bb786bd099683d746044d2.tar.gz chat-de2f7f4e529e697c07bb786bd099683d746044d2.tar.bz2 chat-de2f7f4e529e697c07bb786bd099683d746044d2.zip |
Fix oauth routes and link issues
Diffstat (limited to 'api/user.go')
-rw-r--r-- | api/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go index 6803a946c..43969158a 100644 --- a/api/user.go +++ b/api/user.go @@ -1938,7 +1938,7 @@ func GetAuthorizationCode(c *Context, service, teamName string, props map[string props["team"] = teamName state := b64.StdEncoding.EncodeToString([]byte(model.MapToJson(props))) - redirectUri := c.GetSiteURL() + "/api/v1/oauth/" + service + "/complete" + redirectUri := c.GetSiteURL() + "/signup/" + service + "/complete" authUrl := endpoint + "?response_type=code&client_id=" + clientId + "&redirect_uri=" + url.QueryEscape(redirectUri) + "&state=" + url.QueryEscape(state) |