Ability to use OAuth login from mobile (#6432)

Этот коммит содержится в:
enahum
2017-05-17 17:33:44 -04:00
коммит произвёл Joram Wilander
родитель d103ed6ca9
Коммит 5f9a28ed6f
3 изменённых файлов: 31 добавлений и 8 удалений

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

@@ -290,9 +290,9 @@ func newSessionUpdateToken(appName string, accessData *model.AccessData, user *m
return accessRsp, nil
}
func GetOAuthLoginEndpoint(service, teamId, redirectTo, loginHint string) (string, *model.AppError) {
func GetOAuthLoginEndpoint(service, teamId, action, redirectTo, loginHint string) (string, *model.AppError) {
stateProps := map[string]string{}
stateProps["action"] = model.OAUTH_ACTION_LOGIN
stateProps["action"] = action
if len(teamId) != 0 {
stateProps["team_id"] = teamId
}