diff options
author | Corey Hulen <corey@hulen.com> | 2016-01-12 14:08:29 -0600 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-01-12 14:08:29 -0600 |
commit | 55da65f6896345c75e5ba69f5c36dd00dbc6a0a9 (patch) | |
tree | 03d57b7a4bc91234f41f498b731dbd6438f92ae7 /api | |
parent | fe982081462ca298f85035020f07fc8aa36967af (diff) | |
parent | d1eb3eef309fb6b859511123cf2507e92b3ced49 (diff) | |
download | chat-55da65f6896345c75e5ba69f5c36dd00dbc6a0a9.tar.gz chat-55da65f6896345c75e5ba69f5c36dd00dbc6a0a9.tar.bz2 chat-55da65f6896345c75e5ba69f5c36dd00dbc6a0a9.zip |
Merge pull request #1872 from mattermost/plt-1667
PLT-1667 Support old OAuth routes
Diffstat (limited to 'api')
-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 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) |