summaryrefslogtreecommitdiffstats
path: root/app/oauth.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/oauth.go')
-rw-r--r--app/oauth.go4
1 files changed, 2 insertions, 2 deletions
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
}