From 82071db1476c2dbc0495c10b747ead4d8346e631 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 4 Dec 2012 10:05:46 -0500 Subject: [PATCH] added description --- lib/server/auth.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/server/auth.js b/lib/server/auth.js index 53a8e25c..df87ee0e 100644 --- a/lib/server/auth.js +++ b/lib/server/auth.js @@ -1,13 +1,24 @@ /* https://github.com/prose/gatekeeper */ (function(){ "use strict"; - + + if(!global.cloudcmd) + return console.log( + '# auth.js' + '\n' + + '# -----------' + '\n' + + '# Module is part of Cloud Commander,' + '\n' + + '# used for work with authentication.' + '\n' + + '# If you wont to see at work set auth' + '\n' + + '# parameters in config.json or environment' + '\n' + + '# and start cloudcmd.js or just do' + '\n' + + '# require(\'auth.js\').auth(pCode, pCallBack)' + '\n'); + var main = global.cloudcmd.main, https = main.https, qs = main.querystring, - Config = main.config, + Config = main.config, Util = main.util, GithubAuth = {