diff options
author | enahum <nahumhbl@gmail.com> | 2017-05-17 17:33:44 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-05-17 17:33:44 -0400 |
commit | 5f9a28ed6f45dd02a0aa2b4220717c29567a7ba8 (patch) | |
tree | 4e6fb7a42a00f35023a48768e6c834acd48e7dc5 /app/oauth.go | |
parent | d103ed6ca97ca5a2669f6cf5fe4b3d2a9c945f26 (diff) | |
download | chat-5f9a28ed6f45dd02a0aa2b4220717c29567a7ba8.tar.gz chat-5f9a28ed6f45dd02a0aa2b4220717c29567a7ba8.tar.bz2 chat-5f9a28ed6f45dd02a0aa2b4220717c29567a7ba8.zip |
Ability to use OAuth login from mobile (#6432)
Diffstat (limited to 'app/oauth.go')
-rw-r--r-- | app/oauth.go | 4 |
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 } |