You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2017/01/17 10:50:03 UTC

incubator-ponymail git commit: Drop debug code

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master e332f3ce0 -> 993e6b61c


Drop debug code

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/993e6b61
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/993e6b61
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/993e6b61

Branch: refs/heads/master
Commit: 993e6b61ce488ae552dd59906700dfee629e1cad
Parents: e332f3c
Author: Sebb <se...@apache.org>
Authored: Tue Jan 17 10:49:44 2017 +0000
Committer: Sebb <se...@apache.org>
Committed: Tue Jan 17 10:49:44 2017 +0000

----------------------------------------------------------------------
 site/api/oauth.lua | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/993e6b61/site/api/oauth.lua
----------------------------------------------------------------------
diff --git a/site/api/oauth.lua b/site/api/oauth.lua
index 8a1c991..9e70758 100644
--- a/site/api/oauth.lua
+++ b/site/api/oauth.lua
@@ -57,7 +57,6 @@ function handle(r)
                                         ))
         valid, json = pcall(function() return JSON.decode(result) end)
         if valid and json and json.access_token then
-            r:err(result)
             local ac = json.access_token
             local result = https.request("https://www.googleapis.com/oauth2/v2/userinfo?access_token=" .. r:escape(ac))
             valid, json = pcall(function() return JSON.decode(result) end)