summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2016-01-12 08:02:38 -0500
committerJoramWilander <jwawilander@gmail.com>2016-01-12 08:02:38 -0500
commit1763ff6d72bae7dc57475dc73a03a7c0f12acc90 (patch)
tree6c890a1016f6b6a58fd786d655575c6cc98d6bf9 /api/user.go
parent82818ced78bd720f5354152cf7794903cafc0d14 (diff)
downloadchat-1763ff6d72bae7dc57475dc73a03a7c0f12acc90.tar.gz
chat-1763ff6d72bae7dc57475dc73a03a7c0f12acc90.tar.bz2
chat-1763ff6d72bae7dc57475dc73a03a7c0f12acc90.zip
Support old oauth routes
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go
index d4c7fcaf5..00d637ec2 100644
--- a/api/user.go
+++ b/api/user.go
@@ -1790,7 +1790,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() + "/" + service + "/complete"
+ redirectUri := c.GetSiteURL() + "/signup/" + service + "/complete" // Remove /signup after a few releases (~1.8)
authUrl := endpoint + "?response_type=code&client_id=" + clientId + "&redirect_uri=" + url.QueryEscape(redirectUri) + "&state=" + url.QueryEscape(state)