From 341318a4e3ac5532f4b65d636dbad64e9de5cf08 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 1 Nov 2012 09:45:04 -0400 Subject: [PATCH] fixed bug with github authorithation --- ChangeLog | 2 ++ lib/server/auth.js | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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); }); };