Fix oauth routes and link issues

Этот коммит содержится в:
JoramWilander
2016-03-24 19:32:25 -04:00
родитель 8f5b90fe78
Коммит de2f7f4e52
5 изменённых файлов: 19 добавлений и 16 удалений

Просмотреть файл

@@ -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)