diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-08-31 09:56:31 -0400 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-08-31 10:56:31 -0300 |
commit | b0b39ce71cd77fbffbf23d56b20db1927f0c6cb1 (patch) | |
tree | 2e86e6520c3b350f0779c89b4b07ee7ed3d080ae /api | |
parent | dc09b7781ac310646014f05db23844ab2c6d63f4 (diff) | |
download | chat-b0b39ce71cd77fbffbf23d56b20db1927f0c6cb1.tar.gz chat-b0b39ce71cd77fbffbf23d56b20db1927f0c6cb1.tar.bz2 chat-b0b39ce71cd77fbffbf23d56b20db1927f0c6cb1.zip |
Add debug logging when receiving an oauth redirect (#3916)
Diffstat (limited to 'api')
-rw-r--r-- | api/oauth.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/oauth.go b/api/oauth.go index 7942b0e0c..ef6c0a80b 100644 --- a/api/oauth.go +++ b/api/oauth.go @@ -290,6 +290,8 @@ func completeOAuth(c *Context, w http.ResponseWriter, r *http.Request) { params := mux.Vars(r) service := params["service"] + l4g.Debug(utils.T("api.oauth.receive_redirect.debug", map[string]interface{}{"URL": r.URL.String()})) + code := r.URL.Query().Get("code") state := r.URL.Query().Get("state") |