From 5f9a28ed6f45dd02a0aa2b4220717c29567a7ba8 Mon Sep 17 00:00:00 2001 From: enahum Date: Wed, 17 May 2017 17:33:44 -0400 Subject: Ability to use OAuth login from mobile (#6432) --- app/oauth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/oauth.go') diff --git a/app/oauth.go b/app/oauth.go index 03e3c507b..deeb10f17 100644 --- a/app/oauth.go +++ b/app/oauth.go @@ -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 } -- cgit v1.2.3-1-g7c22