diff --git a/ChangeLog b/ChangeLog index 409cdc2c..22c37a6c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/lib/server/auth.js b/lib/server/auth.js index 7af9fde2..93008f71 100644 --- a/lib/server/auth.js +++ b/lib/server/auth.js @@ -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); }); };