mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fixed bug with github authorithation
This commit is contained in:
parent
00f6396207
commit
341318a4e3
2 changed files with 6 additions and 2 deletions
|
|
@ -57,6 +57,8 @@ moved to ie.js).
|
|||
* Index processing function moved out from
|
||||
server.js to cloudcmd.js.
|
||||
|
||||
* Added ability of authorithation in GitHub.
|
||||
|
||||
|
||||
2012.10.01, Version 0.1.7
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,12 @@ var https = require('https'),
|
|||
qs = require('querystring'),
|
||||
|
||||
DIR = process.cwd() + '/',
|
||||
SRVDIR = DIR + 'lib/server/',
|
||||
LIBDIR = DIR + 'lib/',
|
||||
SRVDIR = LIBDIR + 'server/',
|
||||
|
||||
srvfunc = require(SRVDIR + 'srvfunc'),
|
||||
Config = srvfunc.require(DIR + 'config'),
|
||||
Util = srvfunc.require(LIBDIR + 'util'),
|
||||
|
||||
GithubAuth = {
|
||||
host: "github.com",
|
||||
|
|
@ -31,7 +33,7 @@ exports.auth = function(pCode, pCallBack){
|
|||
var result = { "token": token };
|
||||
console.log(result);
|
||||
|
||||
srvfunc.exec(pCallBack);
|
||||
Util.exec(pCallBack);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue