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 = {