mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(github) rm code
This commit is contained in:
parent
b74ff62ccd
commit
a0c4ebca0f
2 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue