fixed bug with github authorithation

This commit is contained in:
coderaiser 2012-11-01 09:45:04 -04:00
parent 00f6396207
commit 341318a4e3
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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);
});
};