From a0c4ebca0f957dff0d8857e447c1069c1a894133 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 5 Mar 2014 11:10:46 -0500 Subject: [PATCH] fix(github) rm code --- lib/client/storage/_github.js | 2 +- lib/server/auth.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/client/storage/_github.js b/lib/client/storage/_github.js index b128cb79..0f1debd8 100644 --- a/lib/client/storage/_github.js +++ b/lib/client/storage/_github.js @@ -53,7 +53,7 @@ var CloudCmd, Util, DOM, CloudFunc, Github, cb; GitHub.autorize = function(callback, code) { Storage.get('token', function(token) { - var code, isContain, + var isContain, URL = '//' + window.location.host + '/auth/github'; if (token) { diff --git a/lib/server/auth.js b/lib/server/auth.js index 3a3c9d9b..1ab700e3 100644 --- a/lib/server/auth.js +++ b/lib/server/auth.js @@ -53,12 +53,12 @@ storage = Util.findObjByNameInArr(Modules, 'storage'), github = Util.findObjByNameInArr(storage, 'GitHub'), - id = lGitHub && lGitHub.key, - secret = lGitHub && lGitHub.secret, + id = github && github.key, + secret = github && github.secret, env = process.env, clientId = env.github_key || id, - clientSecret = env.github_secret || secret; + clientSecret = env.github_secret || secret, data = qs.stringify({ client_id : clientId,